Changeset 99907 in webkit
- Timestamp:
- Nov 10, 2011 3:31:45 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r99901 r99907 1 2011-11-10 Tony Chang <tony@chromium.org> 2 3 Lazily start DRT instances in NRWT 4 https://bugs.webkit.org/show_bug.cgi?id=72038 5 6 Reviewed by Eric Seidel. 7 8 Just a refactoring, no new tests. 9 10 * Scripts/webkitpy/layout_tests/controllers/worker.py: 11 * Scripts/webkitpy/layout_tests/port/chromium.py: 12 * Scripts/webkitpy/layout_tests/port/dryrun.py: 13 * Scripts/webkitpy/layout_tests/port/test.py: 14 * Scripts/webkitpy/layout_tests/port/webkit.py: 15 1 16 2011-11-10 Ryosuke Niwa <rniwa@webkit.org> 2 17 -
trunk/Tools/Scripts/webkitpy/layout_tests/controllers/worker.py
r91432 r99907 206 206 207 207 driver = self._port.create_driver(self._worker_number) 208 driver.start()209 208 210 209 class SingleTestThread(threading.Thread): … … 247 246 if not self._driver or self._driver.poll() is not None: 248 247 self._driver = self._port.create_driver(self._worker_number) 249 self._driver.start()250 248 return self.run_single_test(self._driver, test_input) 251 249 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py
r99773 r99907 449 449 return cmd 450 450 451 def start(self):451 def _start(self): 452 452 assert not self._proc 453 453 # FIXME: This should use ServerProcess like WebKitDriver does. … … 511 511 512 512 def run_test(self, driver_input): 513 if not self._proc: 514 self._start() 515 513 516 output = [] 514 517 error = [] … … 524 527 uri = self._port.test_to_uri(driver_input.test_name) 525 528 cmd = self._test_shell_command(uri, driver_input.timeout, driver_input.image_hash) 526 (line, crash)= self._write_command_and_read_line(input=cmd)529 line, crash = self._write_command_and_read_line(input=cmd) 527 530 528 531 while not crash and line.rstrip() != "#EOF": … … 566 569 error.append(line) 567 570 568 (line, crash)= self._write_command_and_read_line(input=None)571 line, crash = self._write_command_and_read_line(input=None) 569 572 570 573 run_time = time.time() - start_time -
trunk/Tools/Scripts/webkitpy/layout_tests/port/dryrun.py
r99773 r99907 135 135 return DriverOutput(text, image, checksum, audio, crash=False, test_time=time.time() - start_time, timeout=False, error='') 136 136 137 def start(self):138 pass139 140 137 def stop(self): 141 138 pass -
trunk/Tools/Scripts/webkitpy/layout_tests/port/test.py
r99773 r99907 510 510 test_time=time.time() - start_time, timeout=test.timeout, error=test.error) 511 511 512 def start(self):513 pass514 515 512 def stop(self): 516 513 pass -
trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py
r99773 r99907 456 456 self.error_from_test = str() 457 457 self.err_seen_eof = False 458 self._server_process = None 458 459 459 460 … … 480 481 return cmd 481 482 482 def start(self):483 def _start(self): 483 484 server_name = self._port.driver_name() 484 485 environment = self._port.setup_environ_for_server(server_name) … … 541 542 542 543 def run_test(self, driver_input): 544 if not self._server_process: 545 self._start() 543 546 self.error_from_test = str() 544 547 self.err_seen_eof = False
Note: See TracChangeset
for help on using the changeset viewer.