Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1242)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py

Issue 2467013002: Disallow [ Missing ] expectations in test expectations files. (Closed)
Patch Set: Change current missing expectations to skips Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
index b55a2d8fe769793346a1e17b0094069733a04f6f..a8fc9eaac48820aa681a6f707b85a206dbcb1087 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
@@ -435,6 +435,11 @@ class TestExpectationLine(object):
if not expectations and not has_unrecognized_expectation:
warnings.append('Missing expectations.')
+ if 'MISSING' in expectations:
+ warnings.append(
+ '"Missing" expectations are not allowed; either download new baselines '
+ '(see https://goo.gl/SHVYrZ) or use "NeedsRebaseline" expecatations.')
+
expectation_line.bugs = bugs
expectation_line.specifiers = specifiers
expectation_line.expectations = expectations

Powered by Google App Engine
This is Rietveld 408576698