Changeset 99907 in webkit


Ignore:
Timestamp:
Nov 10, 2011 3:31:45 PM (13 years ago)
Author:
tony@chromium.org
Message:

Lazily start DRT instances in NRWT
https://bugs.webkit.org/show_bug.cgi?id=72038

Reviewed by Eric Seidel.

Just a refactoring, no new tests.

  • Scripts/webkitpy/layout_tests/controllers/worker.py:
  • Scripts/webkitpy/layout_tests/port/chromium.py:
  • Scripts/webkitpy/layout_tests/port/dryrun.py:
  • Scripts/webkitpy/layout_tests/port/test.py:
  • Scripts/webkitpy/layout_tests/port/webkit.py:
Location:
trunk/Tools
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r99901 r99907  
     12011-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
    1162011-11-10  Ryosuke Niwa  <rniwa@webkit.org>
    217
  • trunk/Tools/Scripts/webkitpy/layout_tests/controllers/worker.py

    r91432 r99907  
    206206
    207207        driver = self._port.create_driver(self._worker_number)
    208         driver.start()
    209208
    210209        class SingleTestThread(threading.Thread):
     
    247246        if not self._driver or self._driver.poll() is not None:
    248247            self._driver = self._port.create_driver(self._worker_number)
    249             self._driver.start()
    250248        return self.run_single_test(self._driver, test_input)
    251249
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py

    r99773 r99907  
    449449        return cmd
    450450
    451     def start(self):
     451    def _start(self):
    452452        assert not self._proc
    453453        # FIXME: This should use ServerProcess like WebKitDriver does.
     
    511511
    512512    def run_test(self, driver_input):
     513        if not self._proc:
     514            self._start()
     515
    513516        output = []
    514517        error = []
     
    524527        uri = self._port.test_to_uri(driver_input.test_name)
    525528        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)
    527530
    528531        while not crash and line.rstrip() != "#EOF":
     
    566569                error.append(line)
    567570
    568             (line, crash) = self._write_command_and_read_line(input=None)
     571            line, crash = self._write_command_and_read_line(input=None)
    569572
    570573        run_time = time.time() - start_time
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/dryrun.py

    r99773 r99907  
    135135        return DriverOutput(text, image, checksum, audio, crash=False, test_time=time.time() - start_time, timeout=False, error='')
    136136
    137     def start(self):
    138         pass
    139 
    140137    def stop(self):
    141138        pass
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/test.py

    r99773 r99907  
    510510            test_time=time.time() - start_time, timeout=test.timeout, error=test.error)
    511511
    512     def start(self):
    513         pass
    514 
    515512    def stop(self):
    516513        pass
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py

    r99773 r99907  
    456456        self.error_from_test = str()
    457457        self.err_seen_eof = False
     458        self._server_process = None
    458459
    459460
     
    480481        return cmd
    481482
    482     def start(self):
     483    def _start(self):
    483484        server_name = self._port.driver_name()
    484485        environment = self._port.setup_environ_for_server(server_name)
     
    541542
    542543    def run_test(self, driver_input):
     544        if not self._server_process:
     545            self._start()
    543546        self.error_from_test = str()
    544547        self.err_seen_eof = False
Note: See TracChangeset for help on using the changeset viewer.