Update of /cvs-repository/Packages/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv9629/lib/python/Zope/Startup

Modified Files:
      Tag: Zope-2_7-branch
        zopectl.py 
Log Message:


   - Backported fix to 'zopectl test' from 2.8 branch, to allow remaining
     in the 'zopectl>' shell after running unit tests.


=== Packages/Zope/Startup/zopectl.py 1.3.2.12 => 1.3.2.13 ===
--- Packages/Zope/Startup/zopectl.py:1.3.2.12   Fri Nov 26 14:48:26 2004
+++ Packages/Zope/Startup/zopectl.py    Thu Aug  4 16:52:50 2005
@@ -248,7 +248,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