| Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
|
| index 35acceccca7089b19b20ec130d20fe64b5a84aca..6acc7224e2ec5a56cea686a4c2c59070ff690199 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
|
| @@ -192,10 +192,13 @@ class CopyExistingBaselinesInternal(AbstractRebaseliningCommand):
|
| _log.debug("Existing baseline at %s, not copying over it.", new_baseline)
|
| continue
|
|
|
| - expectations = TestExpectations(port, [test_name])
|
| - # TODO(qyearsley): Make sure we're also skipping copying existing baselines in
|
| - # the case where the port only runs smoke tests and the test is a smoke test.
|
| - if SKIP in expectations.get_expectations(test_name):
|
| + generic_expectations = TestExpectations(port, tests=[test_name], include_overrides=False)
|
| + full_expectations = TestExpectations(port, tests=[test_name], include_overrides=True)
|
| + # TODO(qyearsley): Change Port.skips_test so that this can be simplified.
|
| + if SKIP in full_expectations.get_expectations(test_name):
|
| + _log.debug("%s is skipped (perhaps temporarily) on %s.", test_name, port.name())
|
| + continue
|
| + if port.skips_test(test_name, generic_expectations, full_expectations):
|
| _log.debug("%s is skipped on %s.", test_name, port.name())
|
| continue
|
|
|
|
|