| Index: Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| diff --git a/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py b/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| index eeb4a94980907f9bb0ed40b89e66eeabfbc8a6ac..861720c9f922849da59e0d7f328532c3ed2a1917 100644
|
| --- a/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| +++ b/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| @@ -156,6 +156,11 @@ class TestExpectationParser(object):
|
| if self.REBASELINE_MODIFIER in expectations:
|
| expectation_line.warnings.append('REBASELINE should only be used for running rebaseline.py. Cannot be checked in.')
|
|
|
| + if self.NEEDS_REBASELINE_MODIFIER in expectations or self.NEEDS_MANUAL_REBASELINE_MODIFIER in expectations:
|
| + for test in expectation_line.matching_tests:
|
| + if self._port.reference_files(test):
|
| + expectation_line.warnings.append('A reftest cannot be marked as NeedsRebaseline/NeedsManualRebaseline')
|
| +
|
| def _parse_expectations(self, expectation_line):
|
| result = set()
|
| for part in expectation_line.expectations:
|
|
|