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

Implement -C as shortcut for --config-file.

parent 1ff2ddfb
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# #
############################################################################## ##############################################################################
""" """
test.py [-abcdDfgGhLmprtTuv] [modfilter [testfilter]] test.py [-abcCdDfgGhLmprtTuv] [modfilter [testfilter]]
Find and run tests written using the unittest module. Find and run tests written using the unittest module.
...@@ -49,6 +49,7 @@ named .testinfo, it will not be searched for tests. Really.) ...@@ -49,6 +49,7 @@ named .testinfo, it will not be searched for tests. Really.)
-c -c
Use pychecker Use pychecker
-C filename
--config-file filename --config-file filename
Configure Zope by loading the specified configuration file (zope.conf). Configure Zope by loading the specified configuration file (zope.conf).
...@@ -91,6 +92,7 @@ named .testinfo, it will not be searched for tests. Really.) ...@@ -91,6 +92,7 @@ named .testinfo, it will not be searched for tests. Really.)
Search for tests starting in the specified start directory Search for tests starting in the specified start directory
(useful for testing components being developed outside the main (useful for testing components being developed outside the main
"src" or "build" trees). "src" or "build" trees).
Note: This directory will be prepended to sys.path.
--keepbytecode --keepbytecode
Do not delete all stale bytecode before running tests Do not delete all stale bytecode before running tests
...@@ -732,7 +734,7 @@ def process_args(argv=None): ...@@ -732,7 +734,7 @@ def process_args(argv=None):
import_testing = False import_testing = False
try: try:
opts, args = getopt.getopt(argv[1:], "a:bcdDfg:G:hLmprtTuv", opts, args = getopt.getopt(argv[1:], "a:bcC:dDfg:G:hLmprtTuv",
["all", "help", "libdir=", "times=", ["all", "help", "libdir=", "times=",
"keepbytecode", "dir=", "keepbytecode", "dir=",
"config-file=", "import-testing"]) "config-file=", "import-testing"])
...@@ -802,7 +804,7 @@ def process_args(argv=None): ...@@ -802,7 +804,7 @@ def process_args(argv=None):
timesfn = v timesfn = v
elif k == '--dir': elif k == '--dir':
test_dir = v test_dir = v
elif k == '--config-file': elif k == '--config-file' or k == '-C':
config_file = v config_file = v
elif k == '--import-testing': elif k == '--import-testing':
import_testing = True import_testing = True
......
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