Commit 6b569a5b authored by sgjesse@gmail.com's avatar sgjesse@gmail.com

Handle spaces in the working directory when running tests on Windows.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@100 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 30e44ee4
......@@ -299,11 +299,15 @@ INITIAL_SLEEP_TIME = 0.0001
SLEEP_TIME_FACTOR = 1.25
def RunProcess(context, timeout, **args):
if context.verbose: print "#", " ".join(args['args'])
def RunProcess(context, timeout, args, **rest):
if context.verbose: print "#", " ".join(args)
popen_args = args
if platform.system() == 'Windows':
popen_args = '"' + subprocess.list2cmdline(args) + '"'
process = subprocess.Popen(
shell = (platform.system() == 'Windows'),
**args
args = popen_args,
**rest
)
# Compute the end time - if the process crosses this limit we
# consider it timed out.
......
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