[Zope-Checkins] SVN: Zope/trunk/lib/python/Zope2/Startup/zopectl.py
Merge 'zopectl test' fix from 2.8 branch.
Tres Seaver
tseaver at palladion.com
Thu Aug 4 14:59:21 EDT 2005
Log message for revision 37712:
Merge 'zopectl test' fix from 2.8 branch.
Changed:
U Zope/trunk/lib/python/Zope2/Startup/zopectl.py
-=-
Modified: Zope/trunk/lib/python/Zope2/Startup/zopectl.py
===================================================================
--- Zope/trunk/lib/python/Zope2/Startup/zopectl.py 2005-08-04 16:54:45 UTC (rev 37711)
+++ Zope/trunk/lib/python/Zope2/Startup/zopectl.py 2005-08-04 18:59:21 UTC (rev 37712)
@@ -259,7 +259,11 @@
args.insert(0, self.options.python)
print 'Running tests via: %s' % ' '.join(args)
- os.execv(self.options.python, args)
+ pid = os.fork()
+ if pid == 0: # child
+ os.execv(self.options.python, args)
+ else:
+ os.waitpid(pid, 0)
def help_test(self):
print "test [args]+ -- run unit / functional tests."
More information about the Zope-Checkins
mailing list