Changeset 83801 in webkit


Ignore:
Timestamp:
Apr 13, 2011 6:37:18 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

2011-04-13 Dirk Pranke <dpranke@chromium.org>

Reviewed by Tony Chang.

new-run-webkit-tests --run-singly option is busted
https://bugs.webkit.org/show_bug.cgi?id=55909

Python's broken lexical scoping strikes again :(.

  • Scripts/webkitpy/layout_tests/layout_package/worker_mixin.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r83799 r83801  
     12011-04-13  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        new-run-webkit-tests --run-singly option is busted
     6        https://bugs.webkit.org/show_bug.cgi?id=55909
     7
     8        Python's broken lexical scoping strikes again :(.
     9
     10        * Scripts/webkitpy/layout_tests/layout_package/worker_mixin.py:
     11        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
     12
    1132011-04-13  Ojan Vafai  <ojan@chromium.org>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/worker_mixin.py

    r83635 r83801  
    160160        """
    161161        worker = self
    162         result = None
    163162
    164163        driver = worker._port.create_driver(worker._worker_number)
     
    167166        class SingleTestThread(threading.Thread):
    168167            def run(self):
    169                 result = worker._run_single_test(driver, test_input)
     168                self.result = worker._run_single_test(driver, test_input)
    170169
    171170        thread = SingleTestThread()
    172171        thread.start()
    173172        thread.join(thread_timeout_sec)
     173        result = getattr(thread, 'result', None)
    174174        if thread.isAlive():
    175175            # If join() returned with the thread still running, the
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py

    r83783 r83801  
    326326            self.assertEquals(len(batch), 1, '%s had too many tests' % ', '.join(batch))
    327327
     328    def test_run_singly_actually_runs_tests(self):
     329        res, _, _, _ = logging_run(['--run-singly', 'failures/unexpected'])
     330        self.assertEquals(res, 5)
     331
    328332    def test_single_file(self):
    329333        tests_run = get_tests_run(['passes/text.html'], tests_included=True, flatten_batches=True)
Note: See TracChangeset for help on using the changeset viewer.