Commit b13549a1 authored by Stefan H. Holek's avatar Stefan H. Holek

Implemented missing -q flag which is expected/supported by 'zopectl test'.

parent de31b967
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# #
############################################################################## ##############################################################################
""" """
test.py [-abcCdDfgGhLmprtTuv] [modfilter [testfilter]] test.py [-abcCdDfgGhLmpqrtTuv] [modfilter [testfilter]]
Find and run tests written using the unittest module. Find and run tests written using the unittest module.
...@@ -145,10 +145,11 @@ named .testinfo, it will not be searched for tests. Really.) ...@@ -145,10 +145,11 @@ named .testinfo, it will not be searched for tests. Really.)
KCacheGrind sources to create data suitable for analysis by KCacheGrind. KCacheGrind sources to create data suitable for analysis by KCacheGrind.
-v -v
-q
Verbose output. With one -v, unittest prints a dot (".") for each Verbose output. With one -v, unittest prints a dot (".") for each
test run. With -vv, unittest prints the name of each test (for test run. With -vv, unittest prints the name of each test (for
some definition of "name" ...). With no -v, unittest is silent some definition of "name" ...). With no -v (or with -q), unittest is
until the end of the run, except when errors occur. silent until the end of the run, except when errors occur.
-u -u
-m -m
...@@ -801,7 +802,7 @@ def process_args(argv=None): ...@@ -801,7 +802,7 @@ def process_args(argv=None):
no_warnings = False no_warnings = False
try: 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=", ["all", "help", "libdir=", "times=",
"keepbytecode", "nowarnings", "dir=", "keepbytecode", "nowarnings", "dir=",
"config-file=", "import-testing", "config-file=", "import-testing",
...@@ -870,6 +871,8 @@ def process_args(argv=None): ...@@ -870,6 +871,8 @@ def process_args(argv=None):
GUI = 1 GUI = 1
elif k == "-v": elif k == "-v":
VERBOSE += 1 VERBOSE += 1
elif k == "-q":
VERBOSE = 0
elif k == "--times": elif k == "--times":
try: try:
timetests = int(v) timetests = int(v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment