Changeset 70590 in webkit
- Timestamp:
- Oct 26, 2010 5:08:40 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r70586 r70590 1 2010-10-26 Ojan Vafai <ojan@chromium.org> 2 3 Reviewed by Tony Chang. 4 5 remove DEFER support from new-run-webkit-tests 6 https://bugs.webkit.org/show_bug.cgi?id=48387 7 8 DEFER was needed when we were trying to ship Chrome beta. 9 Now it's just extra complication. 10 11 * Scripts/webkitpy/layout_tests/layout_package/json_layout_results_generator.py: 12 * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py: 13 * Scripts/webkitpy/layout_tests/layout_package/test_expectations_unittest.py: 14 * Scripts/webkitpy/layout_tests/port/chromium_unittest.py: 15 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: 16 * Scripts/webkitpy/style/checkers/test_expectations_unittest.py: 17 1 18 2010-10-26 Eric Seidel <eric@webkit.org> 2 19 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/json_layout_results_generator.py
r65574 r70590 43 43 # Additional JSON fields. 44 44 WONTFIX = "wontfixCounts" 45 DEFERRED = "deferredCounts"46 45 47 46 # Note that we omit test_expectations.FAIL from this list because … … 167 166 len(self._expectations.get_tests_with_timeline( 168 167 test_expectations.NOW)), self.ALL_FIXABLE_COUNT) 169 self._insert_item_into_raw_list(results_for_builder,170 self._get_failure_summary_entry(test_expectations.DEFER),171 self.DEFERRED)172 168 self._insert_item_into_raw_list(results_for_builder, 173 169 self._get_failure_summary_entry(test_expectations.WONTFIX), -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/test_expectations.py
r67974 r70590 44 44 # Test expectation and modifier constants. 45 45 (PASS, FAIL, TEXT, IMAGE, IMAGE_PLUS_TEXT, TIMEOUT, CRASH, SKIP, WONTFIX, 46 DEFER, SLOW, REBASELINE, MISSING, FLAKY, NOW, NONE) = range(16)46 SLOW, REBASELINE, MISSING, FLAKY, NOW, NONE) = range(15) 47 47 48 48 # Test expectation file update action constants … … 229 229 DEBUG SKIP : LayoutTests/fast/js/no-good.js = TIMEOUT PASS 230 230 LINUX DEBUG SKIP : LayoutTests/fast/js/no-good.js = TIMEOUT PASS 231 DEFERLINUX WIN : LayoutTests/fast/js/no-good.js = TIMEOUT PASS231 LINUX WIN : LayoutTests/fast/js/no-good.js = TIMEOUT PASS 232 232 233 233 SKIP: Doesn't run the test. 234 234 SLOW: The test takes a long time to run, but does not timeout indefinitely. 235 235 WONTFIX: For tests that we never intend to pass on a given platform. 236 DEFER: Test does not count in our statistics for the current release.237 236 DEBUG: Expectations apply only to the debug build. 238 237 RELEASE: Expectations apply only to release build. … … 242 241 Notes: 243 242 -A test cannot be both SLOW and TIMEOUT 244 -A test cannot be both DEFER and WONTFIX245 243 -A test should only be one of IMAGE, TEXT, IMAGE+TEXT, or FAIL. FAIL is 246 244 a migratory state that currently means either IMAGE, TEXT, or … … 250 248 -A test can be included twice, but not via the same path. 251 249 -If a test is included twice, then the more precise path wins. 252 -CRASH tests cannot be DEFER orWONTFIX250 -CRASH tests cannot be WONTFIX 253 251 """ 254 252 … … 283 281 MODIFIERS = {'skip': SKIP, 284 282 'wontfix': WONTFIX, 285 'defer': DEFER,286 283 'slow': SLOW, 287 284 'rebaseline': REBASELINE, … … 289 286 290 287 TIMELINES = {'wontfix': WONTFIX, 291 'now': NOW, 292 'defer': DEFER} 288 'now': NOW} 293 289 294 290 RESULT_TYPES = {'skip': SKIP, … … 622 618 return False 623 619 624 if 'wontfix' in options and 'defer' in options:625 self._add_error(lineno, 'Test cannot be both DEFER and WONTFIX.',626 test_and_expectations)627 628 620 if self._is_lint_mode and 'rebaseline' in options: 629 621 self._add_error(lineno, … … 774 766 if 'wontfix' in modifiers: 775 767 self._timeline_to_tests[WONTFIX].add(test) 776 elif 'defer' in modifiers:777 self._timeline_to_tests[DEFER].add(test)778 768 else: 779 769 self._timeline_to_tests[NOW].add(test) -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/test_expectations_unittest.py
r67974 r70590 135 135 set([TEXT, CRASH])) 136 136 137 def test_defer(self):138 self.parse_exp('BUGX DEFER : failures/expected/text.html = TEXT')139 self.assertEqual(self._exp.get_options(140 self.get_test('failures/expected/text.html')), ['bugx', 'defer'])141 142 137 def test_precedence(self): 143 138 # This tests handling precedence of specific lines over directories … … 145 140 exp_str = """ 146 141 BUGX : failures/expected/text.html = TEXT 147 BUGX DEFER: failures/expected = IMAGE142 BUGX WONTFIX : failures/expected = IMAGE 148 143 """ 149 144 self.parse_exp(exp_str) … … 228 223 'BUG_TEST SLOW : failures/expected/timeout.html = TIMEOUT') 229 224 230 def test_semantic_wontfix_defer(self):231 # A test cannot be WONTFIX and DEFER.232 self.assertRaises(SyntaxError, self.parse_exp,233 'BUG_TEST WONTFIX DEFER : failures/expected/text.html = TEXT')234 235 225 def test_semantic_rebaseline(self): 236 226 # Can't lint a file w/ 'REBASELINE' in it. -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_unittest.py
r70013 r70590 122 122 123 123 port.test_expectations = lambda: """BUG_TEST SKIP : fast/js/not-good.js = TEXT 124 DEFERLINUX WIN : fast/js/very-good.js = TIMEOUT PASS"""124 LINUX WIN : fast/js/very-good.js = TIMEOUT PASS""" 125 125 port.test_expectations_overrides = lambda: '' 126 126 port.tests = lambda paths: set() -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r70458 r70590 1012 1012 now = result_summary.tests_by_timeline[test_expectations.NOW] 1013 1013 wontfix = result_summary.tests_by_timeline[test_expectations.WONTFIX] 1014 defer = result_summary.tests_by_timeline[test_expectations.DEFER]1015 1014 1016 1015 # We use a fancy format string in order to print the data out in a 1017 1016 # nicely-aligned table. 1018 fmtstr = ("Expect: %%5d %%-8s (%%%dd now, %%%dd defer, %%%dd wontfix)" 1019 % (self._num_digits(now), self._num_digits(defer), 1020 self._num_digits(wontfix))) 1017 fmtstr = ("Expect: %%5d %%-8s (%%%dd now, %%%dd wontfix)" 1018 % (self._num_digits(now), self._num_digits(wontfix))) 1021 1019 self._printer.print_expected(fmtstr % 1022 (len(tests), result_type_str, len(tests & now), 1023 len(tests & defer), len(tests & wontfix))) 1020 (len(tests), result_type_str, len(tests & now), len(tests & wontfix))) 1024 1021 1025 1022 def _num_digits(self, num): … … 1242 1239 self._printer.print_actual("") 1243 1240 self._print_result_summary_entry(result_summary, 1244 test_expectations.NOW, "Tests to be fixed for the current release") 1245 1246 self._printer.print_actual("") 1247 self._print_result_summary_entry(result_summary, 1248 test_expectations.DEFER, 1249 "Tests we'll fix in the future if they fail (DEFER)") 1241 test_expectations.NOW, "Tests to be fixed") 1250 1242 1251 1243 self._printer.print_actual("") -
trunk/WebKitTools/Scripts/webkitpy/style/checkers/test_expectations_unittest.py
r66125 r70590 112 112 "") 113 113 self.assert_lines_lint( 114 ["SLOW DEFERBUG1234 : passes/text.html = PASS"],114 ["SLOW BUG1234 : passes/text.html = PASS"], 115 115 "") 116 116 self.assert_lines_lint( … … 127 127 "Test lacks BUG modifier. " 128 128 "passes/text.html [test/expectations] [2]") 129 self.assert_lines_lint(130 ["WONTFIX DEFER : passes/text.html = PASS"],131 "Test cannot be both DEFER and WONTFIX. "132 "passes/text.html [test/expectations] [5]")133 129 134 130 def test_expectation_errors(self):
Note: See TracChangeset
for help on using the changeset viewer.