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."

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to