2008/link-testsuite/harness linktest.py,1.6,1.7

Update of /sources/public/2008/link-testsuite/harness
In directory hutz:/tmp/cvs-serv6378/harness

Modified Files:
	linktest.py 
Log Message:
Long option processing fixes.

Index: linktest.py
===================================================================
RCS file: /sources/public/2008/link-testsuite/harness/linktest.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- linktest.py	23 May 2011 17:31:55 -0000	1.6
+++ linktest.py	23 May 2011 17:34:04 -0000	1.7
@@ -129,7 +129,7 @@
         argv = sys.argv
     try:
         try:
-            opts, args = getopt.getopt(argv[1:], "ho:vq", ["help", "verbose", "quiet", "checker_uri="])
+            opts, args = getopt.getopt(argv[1:], "ho:vq", ["help", "output=", "verbose", "quiet", "checker_uri="])
             for (opt, value) in opts:
                 if opt == "h" or opt == "--help":
                     raise Usage(msg)
@@ -138,9 +138,9 @@
     
         # option processing
         for option, value in opts:
-            if option == "-v" or opt == "--verbose":
+            if option in ("-v", "--verbose"):
                 verbose = 2
-            if option == "-q" or opt == "--quiet":
+            if option in ("-q", "--quiet"):
                 verbose = 0
             if option in ("-h", "--help"):
                 raise Usage(help_message)

Received on Monday, 23 May 2011 17:34:08 UTC