Changeset 121784 in webkit


Ignore:
Timestamp:
Jul 3, 2012 10:21:52 AM (12 years ago)
Author:
ojan@chromium.org
Message:

Make the skia_test_expectations.txt file optional.
https://bugs.webkit.org/show_bug.cgi?id=90400

Reviewed by Dirk Pranke.

It used to be optional. This regressed at some point. It's important that it be
optional so that webkit-patch commands work in a pure-webkit checkout for chromium bots.
Specifically, this was breaking webkit-patch rebaseline-test when it would go to update
TestExpectations.

  • Scripts/webkitpy/layout_tests/port/chromium.py:

(ChromiumPort.expectations_files):

  • Scripts/webkitpy/layout_tests/port/chromium_unittest.py:

(ChromiumDriverTest.test_expectations_dict):

Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r121782 r121784  
     12012-07-02  Ojan Vafai  <ojan@chromium.org>
     2
     3        Make the skia_test_expectations.txt file optional.
     4        https://bugs.webkit.org/show_bug.cgi?id=90400
     5
     6        Reviewed by Dirk Pranke.
     7
     8        It used to be optional. This regressed at some point. It's important that it be
     9        optional so that webkit-patch commands work in a pure-webkit checkout for chromium bots.
     10        Specifically, this was breaking webkit-patch rebaseline-test when it would go to update
     11        TestExpectations.
     12
     13        * Scripts/webkitpy/layout_tests/port/chromium.py:
     14        (ChromiumPort.expectations_files):
     15        * Scripts/webkitpy/layout_tests/port/chromium_unittest.py:
     16        (ChromiumDriverTest.test_expectations_dict):
     17
    1182012-07-03  Raphael Kubo da Costa  <rakuco@webkit.org>
    219
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py

    r121595 r121784  
    346346
    347347    def expectations_files(self):
    348         paths = [self.path_to_test_expectations_file(), self.path_from_chromium_base('skia', 'skia_test_expectations.txt')]
     348        paths = [self.path_to_test_expectations_file()]
     349        skia_expectations_path = self.path_from_chromium_base('skia', 'skia_test_expectations.txt')
     350        if self._filesystem.exists(skia_expectations_path):
     351            paths.append(skia_expectations_path)
     352        else:
     353            _log.warning("Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.")
     354
    349355        builder_name = self.get_option('builder_name', 'DUMMY_BUILDER_NAME')
    350356        if builder_name == 'DUMMY_BUILDER_NAME' or '(deps)' in builder_name or builder_name in self.try_builder_names:
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_port_testcase.py

    r121701 r121784  
    165165            'skia', 'skia_test_expectations.txt')
    166166
     167        port._filesystem.write_text_file(skia_overrides_path, 'dummay text')
     168
    167169        port._options.builder_name = 'DUMMY_BUILDER_NAME'
    168170        self.assertEquals(port.expectations_files(), [expectations_path, skia_overrides_path, chromium_overrides_path])
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_unittest.py

    r121497 r121784  
    171171        self.assertFalse(self.port._filesystem.isdir(last_tmpdir))
    172172
     173    def test_expectations_dict(self):
     174        self.port._filesystem.write_text_file('/mock-checkout/LayoutTests/platform/chromium/TestExpectations', 'upstream')
     175        self.port._filesystem.write_text_file('/mock-checkout/Source/WebKit/chromium/webkit/tools/layout_tests/test_expectations.txt', 'downstream')
     176        self.assertEquals('\n'.join(self.port.expectations_dict().values()), 'upstream\ndownstream')
     177
     178        self.port._filesystem.write_text_file(self.port.path_from_chromium_base('skia', 'skia_test_expectations.txt'), 'skia')
     179        self.assertEquals('\n'.join(self.port.expectations_dict().values()), 'upstream\nskia\ndownstream')
     180
    173181
    174182class ChromiumPortLoggingTest(logtesting.LoggingTestCase):
  • trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py

    r121724 r121784  
    7575Retrieving http://example.com/f/builders/Webkit Mac10.7/results/layout-test-results/userscripts/another-test-actual.wav.
    7676Retrieving http://example.com/f/builders/Webkit Mac10.7/results/layout-test-results/userscripts/another-test-actual.txt.
     77Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
    7778"""
    7879        OutputCapture().assert_outputs(self, command._rebaseline_test_and_update_expectations, ["Webkit Mac10.7", "userscripts/another-test.html", None], expected_logs=expected_logs)
     
    273274    userscripts/another-test.html (txt)
    274275    userscripts/images.svg (png)
     276Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
     277Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
     278Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
     279Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
     280Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
     281Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
    275282"""
    276283
Note: See TracChangeset for help on using the changeset viewer.