Fix test harness to correctly split extra flags.

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/12094032

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13539 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3d3c2711
......@@ -49,9 +49,8 @@ class CcTestSuite(testsuite.TestSuite):
if utils.IsWindows():
shell += ".exe"
output = commands.Execute(context.command_prefix +
[shell,
"--list",
context.extra_flags])
[shell, "--list"] +
context.extra_flags)
if output.exit_code != 0:
print output.stdout
print output.stderr
......
......@@ -178,6 +178,7 @@ def ProcessOptions(options):
"running tests locally.")
options.no_network = True
options.command_prefix = shlex.split(options.command_prefix)
options.extra_flags = shlex.split(options.extra_flags)
if options.j == 0:
options.j = multiprocessing.cpu_count()
if options.no_stress:
......
......@@ -171,7 +171,7 @@ class Runner(object):
[os.path.abspath(os.path.join(self.context.shell_dir, shell))] +
d8testflag +
test.suite.GetFlagsForTestCase(test, self.context) +
[self.context.extra_flags])
self.context.extra_flags)
return cmd
......
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