Commit be50e833 authored by Simon Marlow's avatar Simon Marlow
Browse files

Don't put double-quotes around the command when passing it to timeout

Fixes the testsuite on Cygwin/MSYS using Cygwin Python.  I hope it
hasn't broken it using the native Python... if it has, we'll need to
revisit.  I can't see a good reason for the quotes, anyway.
parent cd7d465b
......@@ -971,10 +971,8 @@ def runCmd( cmd ):
if config.platform == 'i386-unknown-mingw32':
# On MinGW, we will always have timeout
assert config.timeout_prog!=''
# We need to add " around the command, because
# (like Windows programs usually) timeout parses the commandline.
r = os.spawnl(os.P_WAIT, config.timeout_prog,
config.timeout_prog,`config.timeout`,'"%s"'%cmd )
config.timeout_prog,`config.timeout`,cmd )
elif config.timeout_prog!='':
r = os.spawnv(os.P_WAIT, config.timeout_prog,
[config.timeout_prog,`config.timeout`,cmd] )
Supports Markdown
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