Changeset 127057 in webkit


Ignore:
Timestamp:
Aug 29, 2012 3:23:33 PM (12 years ago)
Author:
dpranke@chromium.org
Message:

webkit-patch rebaseline-expectations hangs
https://bugs.webkit.org/show_bug.cgi?id=95243

Reviewed by Tony Chang.

Don't try to run no commands in parallel; report an error
instead that we didn't find any tests to rebaseline.

Filed bug 95387 as well to make sure run_in_parallel() doesn't hang forever.

  • Scripts/webkitpy/tool/commands/rebaseline.py:

(RebaselineExpectations.execute):

  • Scripts/webkitpy/tool/commands/rebaseline_unittest.py:

(_assert_command):
(test_rebaseline_expectations_noop):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r127047 r127057  
     12012-08-29  Dirk Pranke  <dpranke@chromium.org>
     2
     3        webkit-patch rebaseline-expectations hangs
     4        https://bugs.webkit.org/show_bug.cgi?id=95243
     5
     6        Reviewed by Tony Chang.
     7
     8        Don't try to run no commands in parallel; report an error
     9        instead that we didn't find any tests to rebaseline.
     10
     11        Filed bug 95387 as well to make sure run_in_parallel() doesn't hang forever.
     12
     13        * Scripts/webkitpy/tool/commands/rebaseline.py:
     14        (RebaselineExpectations.execute):
     15        * Scripts/webkitpy/tool/commands/rebaseline_unittest.py:
     16        (_assert_command):
     17        (test_rebaseline_expectations_noop):
     18
    1192012-08-29  Brady Eidson  <beidson@apple.com>
    220
  • trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline.py

    r126176 r127057  
    356356        for port_name in tool.port_factory.all_port_names():
    357357            self._add_tests_to_rebaseline_for_port(port_name)
     358        if not self._test_list:
     359            _log.warning("Did not find any tests marked REBASELINE.")
     360            return
     361
    358362        self._rebaseline(options, self._test_list)
    359363
  • trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py

    r126247 r127057  
    313313        OutputCapture().assert_outputs(self, command.execute, [MockOptions(optimize=True), [], tool], expected_logs=expected_logs, expected_stdout=expected_stdout, expected_stderr=expected_stderr_with_optimize)
    314314
     315    def _assert_command(self, command, options=None, args=None, expected_stdout='', expected_stderr='', expected_logs=''):
     316        # FIXME: generalize so more tests use this to get rid of boilerplate.
     317        options = options or MockOptions(optimize=True, builders=None, suffixes=['txt'], verbose=False)
     318        args = args or []
     319
     320        tool = MockTool()
     321        command.bind_to_tool(tool)
     322
     323        port = tool.port_factory.get('chromium-mac-lion')
     324        tool.filesystem.write_text_file(port.path_from_chromium_base('skia', 'skia_test_expectations.txt'), '')
     325
     326        for port_name in tool.port_factory.all_port_names():
     327            port = tool.port_factory.get(port_name)
     328            for path in port.expectations_files():
     329                tool.filesystem.write_text_file(path, '')
     330
     331        OutputCapture().assert_outputs(self, command.execute, [options, args, tool], expected_stdout=expected_stdout, expected_stderr=expected_stderr, expected_logs=expected_logs)
     332
     333    def test_rebaseline_expectations_noop(self):
     334        self._assert_command(RebaselineExpectations(), expected_logs='Did not find any tests marked REBASELINE.\n')
     335
    315336    def test_overrides_are_included_correctly(self):
    316337        command = RebaselineExpectations()
Note: See TracChangeset for help on using the changeset viewer.