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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py

Issue 2455233002: Use Port.skips_test in copy-existing-baselines command. (Closed)
Patch Set: For copying existing baselines, continue skipping if test is skipped in generic expectations. Created 4 years, 2 months 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/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

Powered by Google App Engine
This is Rietveld 408576698