[Zope-Checkins] CVS: Packages/Zope/Startup - zopectl.py:1.3.2.12
Lennart Regebro
regebro at nuxeo.com
Fri Nov 26 14:48:26 EST 2004
Update of /cvs-repository/Packages/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv13409/lib/python/Zope/Startup
Modified Files:
Tag: Zope-2_7-branch
zopectl.py
Log Message:
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.
=== Packages/Zope/Startup/zopectl.py 1.3.2.11 => 1.3.2.12 ===
--- Packages/Zope/Startup/zopectl.py:1.3.2.11 Fri Nov 26 09:41:17 2004
+++ Packages/Zope/Startup/zopectl.py Fri Nov 26 14:48:26 2004
@@ -245,10 +245,10 @@
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."
More information about the Zope-Checkins
mailing list