Changeset 121784 in webkit
- Timestamp:
- Jul 3, 2012 10:21:52 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r121782 r121784 1 2012-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 1 18 2012-07-03 Raphael Kubo da Costa <rakuco@webkit.org> 2 19 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py
r121595 r121784 346 346 347 347 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 349 355 builder_name = self.get_option('builder_name', 'DUMMY_BUILDER_NAME') 350 356 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 165 165 'skia', 'skia_test_expectations.txt') 166 166 167 port._filesystem.write_text_file(skia_overrides_path, 'dummay text') 168 167 169 port._options.builder_name = 'DUMMY_BUILDER_NAME' 168 170 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 171 171 self.assertFalse(self.port._filesystem.isdir(last_tmpdir)) 172 172 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 173 181 174 182 class ChromiumPortLoggingTest(logtesting.LoggingTestCase): -
trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
r121724 r121784 75 75 Retrieving http://example.com/f/builders/Webkit Mac10.7/results/layout-test-results/userscripts/another-test-actual.wav. 76 76 Retrieving http://example.com/f/builders/Webkit Mac10.7/results/layout-test-results/userscripts/another-test-actual.txt. 77 Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky. 77 78 """ 78 79 OutputCapture().assert_outputs(self, command._rebaseline_test_and_update_expectations, ["Webkit Mac10.7", "userscripts/another-test.html", None], expected_logs=expected_logs) … … 273 274 userscripts/another-test.html (txt) 274 275 userscripts/images.svg (png) 276 Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky. 277 Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky. 278 Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky. 279 Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky. 280 Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky. 281 Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky. 275 282 """ 276 283
Note: See TracChangeset
for help on using the changeset viewer.