[Zope-Checkins] CVS: Zope - test.py:1.2.2.6
Stefan H. Holek
stefan at epy.co.at
Tue Jul 27 16:52:46 EDT 2004
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv10452
Modified Files:
Tag: Zope-2_7-branch
test.py
Log Message:
Implement -C as shortcut for --config-file.
=== Zope/test.py 1.2.2.5 => 1.2.2.6 ===
--- Zope/test.py:1.2.2.5 Tue Jul 27 13:34:58 2004
+++ Zope/test.py Tue Jul 27 16:52:46 2004
@@ -14,7 +14,7 @@
#
##############################################################################
"""
-test.py [-abcdDfgGhLmprtTuv] [modfilter [testfilter]]
+test.py [-abcCdDfgGhLmprtTuv] [modfilter [testfilter]]
Find and run tests written using the unittest module.
@@ -49,6 +49,7 @@
-c
Use pychecker
+-C filename
--config-file filename
Configure Zope by loading the specified configuration file (zope.conf).
@@ -91,6 +92,7 @@
Search for tests starting in the specified start directory
(useful for testing components being developed outside the main
"src" or "build" trees).
+ Note: This directory will be prepended to sys.path.
--keepbytecode
Do not delete all stale bytecode before running tests
@@ -732,7 +734,7 @@
import_testing = False
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=",
"keepbytecode", "dir=",
"config-file=", "import-testing"])
@@ -802,7 +804,7 @@
timesfn = v
elif k == '--dir':
test_dir = v
- elif k == '--config-file':
+ elif k == '--config-file' or k == '-C':
config_file = v
elif k == '--import-testing':
import_testing = True
More information about the Zope-Checkins
mailing list