[Zope-Checkins] CVS: Packages/Zope/Startup - zopectl.py:1.3.2.11.6.1

Lennart Regebro regebro at nuxeo.com
Fri Nov 26 13:59:11 EST 2004


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

Modified Files:
      Tag: regebro-zopectl_shellfix-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.11.6.1 ===
--- Packages/Zope/Startup/zopectl.py:1.3.2.11	Fri Nov 26 09:41:17 2004
+++ Packages/Zope/Startup/zopectl.py	Fri Nov 26 13:59:11 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