Commit c685010c authored by Tres Seaver's avatar Tres Seaver

Merge 'zopectl test' fix from 2.8 branch.

parent 91eec93d
...@@ -259,7 +259,11 @@ class ZopeCmd(ZDCmd): ...@@ -259,7 +259,11 @@ class ZopeCmd(ZDCmd):
args.insert(0, self.options.python) args.insert(0, self.options.python)
print 'Running tests via: %s' % ' '.join(args) print 'Running tests via: %s' % ' '.join(args)
pid = os.fork()
if pid == 0: # child
os.execv(self.options.python, args) os.execv(self.options.python, args)
else:
os.waitpid(pid, 0)
def help_test(self): def help_test(self):
print "test [args]+ -- run unit / functional tests." print "test [args]+ -- run unit / functional tests."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment