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

Unified Diff: webkit/tools/layout_tests/run_webkit_tests.py

Issue 67021: Turn on parallel webkit tests for debug mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/run_webkit_tests.py
===================================================================
--- webkit/tools/layout_tests/run_webkit_tests.py (revision 13461)
+++ webkit/tools/layout_tests/run_webkit_tests.py (working copy)
@@ -815,25 +815,20 @@
platform_new_results_dir = options.platform
if not options.num_test_shells:
- # Only run stable configurations with multiple test_shells by default.
- if options.target == 'Release':
- cpus = 1
- if sys.platform in ('win32', 'cygwin'):
- cpus = int(os.environ.get('NUMBER_OF_PROCESSORS', 1))
- elif (hasattr(os, "sysconf") and
- os.sysconf_names.has_key("SC_NPROCESSORS_ONLN")):
- # Linux & Unix:
- ncpus = os.sysconf("SC_NPROCESSORS_ONLN")
- if isinstance(ncpus, int) and ncpus > 0:
- cpus = ncpus
- elif sys.platform in ('darwin'): # OSX:
- cpus = int(os.popen2("sysctl -n hw.ncpu")[1].read())
+ cpus = 1
+ if sys.platform in ('win32', 'cygwin'):
+ cpus = int(os.environ.get('NUMBER_OF_PROCESSORS', 1))
+ elif (hasattr(os, "sysconf") and
+ os.sysconf_names.has_key("SC_NPROCESSORS_ONLN")):
+ # Linux & Unix:
+ ncpus = os.sysconf("SC_NPROCESSORS_ONLN")
+ if isinstance(ncpus, int) and ncpus > 0:
+ cpus = ncpus
+ elif sys.platform in ('darwin'): # OSX:
+ cpus = int(os.popen2("sysctl -n hw.ncpu")[1].read())
- # TODO(ojan): Use cpus+1 once we flesh out the flakiness.
- options.num_test_shells = cpus
-
- else:
- options.num_test_shells = 1
+ # TODO(ojan): Use cpus+1 once we flesh out the flakiness.
+ options.num_test_shells = cpus
logging.info("Running %s test_shells in parallel" % options.num_test_shells)
« no previous file with comments | « no previous file | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698