Add explicit "python" to subprocess args in test wrapper script

Review URL: https://chromiumcodereview.appspot.com/10447031

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11663 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e885a82c
......@@ -224,7 +224,8 @@ def Main():
print ">>> running presubmit tests"
returncodes += subprocess.call([workspace + '/tools/presubmit.py'])
args_for_children = [workspace + '/tools/test.py'] + PassOnOptions(options)
args_for_children = ['python']
args_for_children += [workspace + '/tools/test.py'] + PassOnOptions(options)
args_for_children += ['--no-build', '--build-system=gyp']
for arg in args:
args_for_children += [arg]
......@@ -240,10 +241,14 @@ def Main():
shellpath = workspace + '/' + options.outdir + '/' + arch + '.' + mode
env['LD_LIBRARY_PATH'] = shellpath + '/lib.target'
shell = shellpath + "/d8"
child = subprocess.Popen(' '.join(args_for_children +
cmdline = ' '.join(args_for_children +
['--arch=' + arch] +
['--mode=' + mode] +
['--shell=' + shell]),
['--shell=' + shell])
# TODO(jkummerow): This print is temporary.
print "Executing: %s" % cmdline
child = subprocess.Popen(cmdline,
shell=True,
cwd=workspace,
env=env)
......
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