Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv7529

Modified Files:
      Tag: Zope-2_7-branch
        test.py 
Log Message:
Implemented missing -q flag which is expected/supported by 'zopectl test'.


=== Zope/test.py 1.2.2.21 => 1.2.2.22 ===
--- Zope/test.py:1.2.2.21       Sat Dec  3 13:07:13 2005
+++ Zope/test.py        Sun Jan 15 08:18:51 2006
@@ -14,7 +14,7 @@
 #
 ##############################################################################
 """
-test.py [-abcCdDfgGhLmprtTuv] [modfilter [testfilter]]
+test.py [-abcCdDfgGhLmpqrtTuv] [modfilter [testfilter]]
 
 Find and run tests written using the unittest module.
 
@@ -125,10 +125,11 @@
     is parallel to `build'.  It also prints a summary to stdout.
 
 -v
+-q
     Verbose output.  With one -v, unittest prints a dot (".") for each
     test run.  With -vv, unittest prints the name of each test (for
-    some definition of "name" ...).  With no -v, unittest is silent
-    until the end of the run, except when errors occur.
+    some definition of "name" ...).  With no -v (or with -q), unittest is
+    silent until the end of the run, except when errors occur.
 
 -u
 -m
@@ -774,7 +775,7 @@
     no_warnings = False
 
     try:
-        opts, args = getopt.getopt(argv[1:], "a:bcC:dDfg:G:hLmprtTuv",
+        opts, args = getopt.getopt(argv[1:], "a:bcC:dDfg:G:hLmpqrtTuv",
                                    ["all", "help", "libdir=", "times=",
                                     "keepbytecode", "nowarnings", "dir=", 
                                     "config-file=", "import-testing"])
@@ -836,6 +837,8 @@
             GUI = 1
         elif k == "-v":
             VERBOSE += 1
+        elif k == "-q":
+            VERBOSE = 0
         elif k == "--times":
             try:
                 timetests = int(v)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to