Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: tools/run-tests.py

Issue 12094032: Fix test harness to correctly split extra flags. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/testcfg.py ('k') | tools/testrunner/local/execution.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 if options.buildbot: 172 if options.buildbot:
173 # Buildbots run presubmit tests as a separate step. 173 # Buildbots run presubmit tests as a separate step.
174 options.no_presubmit = True 174 options.no_presubmit = True
175 options.no_network = True 175 options.no_network = True
176 if options.command_prefix: 176 if options.command_prefix:
177 print("Specifying --command-prefix disables network distribution, " 177 print("Specifying --command-prefix disables network distribution, "
178 "running tests locally.") 178 "running tests locally.")
179 options.no_network = True 179 options.no_network = True
180 options.command_prefix = shlex.split(options.command_prefix) 180 options.command_prefix = shlex.split(options.command_prefix)
181 options.extra_flags = shlex.split(options.extra_flags)
181 if options.j == 0: 182 if options.j == 0:
182 options.j = multiprocessing.cpu_count() 183 options.j = multiprocessing.cpu_count()
183 if options.no_stress: 184 if options.no_stress:
184 VARIANT_FLAGS = [[], ["--nocrankshaft"]] 185 VARIANT_FLAGS = [[], ["--nocrankshaft"]]
185 if not options.shell_dir: 186 if not options.shell_dir:
186 if options.shell: 187 if options.shell:
187 print "Warning: --shell is deprecated, use --shell-dir instead." 188 print "Warning: --shell is deprecated, use --shell-dir instead."
188 options.shell_dir = os.path.dirname(options.shell) 189 options.shell_dir = os.path.dirname(options.shell)
189 if options.stress_only: 190 if options.stress_only:
190 VARIANT_FLAGS = [["--stress-opt", "--always-opt"]] 191 VARIANT_FLAGS = [["--stress-opt", "--always-opt"]]
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 except KeyboardInterrupt: 363 except KeyboardInterrupt:
363 return 1 364 return 1
364 365
365 if options.time: 366 if options.time:
366 verbose.PrintTestDurations(suites, overall_duration) 367 verbose.PrintTestDurations(suites, overall_duration)
367 return exit_code 368 return exit_code
368 369
369 370
370 if __name__ == "__main__": 371 if __name__ == "__main__":
371 sys.exit(Main()) 372 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/cctest/testcfg.py ('k') | tools/testrunner/local/execution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698