Commit 066b9e9e authored by Lennart Regebro's avatar Lennart Regebro

bin/zopectl test now uses os.execv, instead os os.system, so that options with...

bin/zopectl test now uses os.execv, instead os os.system, so that options with characters that needs shell quoting doesn't break the command.
parent 8ea1fb82
......@@ -46,6 +46,10 @@ Zope Changes
Bugs fixed
- bin/zopectl test now uses os.execv, instead os os.system,
so that options with characters that needs shell quoting
doesn't break the command.
- Collector #945: Allow adding empty PythonScript instances
programmatically.
......
......@@ -254,10 +254,10 @@ class ZopeCmd(ZDCmd):
args.insert(0, '-v')
args.insert(0, script)
args.insert(0, self.options.python)
cmdline = ' '.join([self.options.python] + args)
print 'Running tests via: %s' % cmdline
os.system(cmdline)
print 'Running tests via: %s' % ' '.join(args)
os.execv(self.options.python, args)
def help_test(self):
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