Changeset 57422 in webkit
- Timestamp:
- Apr 10, 2010 3:17:15 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r57418 r57422 1 2010-04-10 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 run_webkit_tests.py shouldn't have platform-specific logic 6 https://bugs.webkit.org/show_bug.cgi?id=37387 7 8 Dirk Pranke pointed out that my last patch was wrong because I 9 introduced platform-specific logic into run_webkit_tests.py, limiting 10 the parallelism in Chromium to work around a bug in the main Mac port. 11 12 * Scripts/webkitpy/common/system/executive.py: 13 - Fix a typo pointed out by Chris Jerdonek. 14 * Scripts/webkitpy/layout_tests/port/base.py: 15 * Scripts/webkitpy/layout_tests/port/mac.py: 16 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: 17 1 18 2010-04-10 Robert Hogan <robert@webkit.org> 2 19 -
trunk/WebKitTools/Scripts/webkitpy/common/system/executive.py
r57407 r57422 128 128 # Darn. We don't have the multiprocessing package. 129 129 system_name = platform.system() 130 if system_name == "Da win":130 if system_name == "Darwin": 131 131 return int(self.run_command(["sysctl", "-n", "hw.ncpu"])) 132 132 elif system_name == "Windows": -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/base.py
r57399 r57422 43 43 import websocket_server 44 44 45 from webkitpy.common.system.executive import Executive 46 45 47 # Python bug workaround. See Port.wdiff_text() for an explanation. 46 48 _wdiff_available = True … … 60 62 return flags_by_configuration[configuration] 61 63 62 def __init__(self, port_name=None, options=None ):64 def __init__(self, port_name=None, options=None, executive=Executive()): 63 65 self._name = port_name 64 66 self._options = options … … 67 69 self._webkit_base_dir = None 68 70 self._websocket_server = None 71 self._executive = executive 72 73 def default_num_dump_render_trees(self): 74 """Return the number of DumpRenderTree instances to use for this 75 port.""" 76 return self._executive.cpu_count() 69 77 70 78 def baseline_path(self): -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py
r57399 r57422 46 46 47 47 import webkitpy 48 import webkitpy.common.system.executive as executive49 48 import webkitpy.common.system.ospath as ospath 50 49 … … 66 65 options.pixel_tests is None): 67 66 options.pixel_tests = False 67 68 def default_num_dump_render_trees(self): 69 # FIXME: new-run-webkit-tests is unstable on Mac running more than 70 # four threads in parallel. 71 # See https://bugs.webkit.org/show_bug.cgi?id=36622 72 num_dump_render_trees = base.Port.default_num_dump_render_trees(self) 73 if num_dump_render_trees > 4: 74 return 4 75 return num_dump_render_trees 68 76 69 77 def baseline_path(self): … … 86 94 self.flag_from_configuration(self._options.configuration), 87 95 ] 88 if executive.run_command(build_drt_command, return_exit_code=True):96 if self._executive.run_command(build_drt_command, return_exit_code=True): 89 97 return False 90 98 … … 99 107 java_tests_path = os.path.join(self.layout_tests_dir(), "java") 100 108 build_java = ["/usr/bin/make", "-C", java_tests_path] 101 if executive.run_command(build_java, return_exit_code=True):109 if self._executive.run_command(build_java, return_exit_code=True): 102 110 _log.error("Failed to build Java support files: %s" % build_java) 103 111 return False … … 325 333 def _webkit_build_directory(self, args): 326 334 cmd = [self.script_path("webkit-build-directory")] + args 327 return executive.run_command(cmd).rstrip()335 return self._executive.run_command(cmd).rstrip() 328 336 329 337 def _build_path(self, *comps): -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r57399 r57422 1428 1428 if not options.num_dump_render_trees: 1429 1429 # FIXME: Investigate perf/flakiness impact of using cpu_count + 1. 1430 options.num_dump_render_trees = executive.cpu_count() 1431 # FIXME: new-run-webkit-tests is unstable on Mac running more than 1432 # four threads in parallel. 1433 # See https://bugs.webkit.org/show_bug.cgi?id=36622 1434 if platform.system() == "Dawin" and options.num_dump_render_trees > 4: 1435 options.num_dump_render_trees = 4 1430 options.num_dump_render_trees = port_obj.default_num_dump_render_trees() 1436 1431 1437 1432 write = create_logging_writer(options, 'config')
Note: See TracChangeset
for help on using the changeset viewer.