[Zope3-checkins] CVS: Zope3 - test.py:1.65

Jim Fulton jim@zope.com
Mon, 30 Jun 2003 12:26:30 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv18972

Modified Files:
	test.py 
Log Message:
Added --build as an equivalent option to -b.


=== Zope3/test.py 1.64 => 1.65 ===
--- Zope3/test.py:1.64	Tue Jun 24 15:27:28 2003
+++ Zope3/test.py	Mon Jun 30 12:26:30 2003
@@ -24,6 +24,7 @@
     The default is to run tests at level 1.  --all is a shortcut for -a 0.
 
 -b
+--build
     Run "python setup.py build" before running tests, where "python"
     is the version of python used to run test.py.  Highly recommended.
     Tests will be run from the build directory.  (Note: In Python < 2.3
@@ -683,7 +684,7 @@
     try:
         opts, args = getopt.getopt(argv[1:], "a:bBcdDfg:G:hLmprtTuv",
                                    ["all", "help", "libdir=", "times=",
-                                    "keepbytecode", "dir="])
+                                    "keepbytecode", "dir=", "build"])
     except getopt.error, msg:
         print msg
         print "Try `python %s -h' for more information." % argv[0]
@@ -694,7 +695,7 @@
             level = int(v)
         elif k == "--all":
             level = 0
-        elif k == "-b":
+        elif k in ("-b", "--build"):
             build = True
         elif k == "-B":
              build = build_inplace = True