[Zope-Checkins] SVN: Zope/trunk/test.py Implement -C as shortcut for --config-file.

Stefan H. Holek stefan at epy.co.at
Tue Jul 27 16:52:22 EDT 2004


Log message for revision 26801:
  Implement -C as shortcut for --config-file.
  


Changed:
  U   Zope/trunk/test.py


-=-
Modified: Zope/trunk/test.py
===================================================================
--- Zope/trunk/test.py	2004-07-27 20:43:01 UTC (rev 26800)
+++ Zope/trunk/test.py	2004-07-27 20:52:22 UTC (rev 26801)
@@ -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