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

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

Issue 2450383002: Refactoring: Move _port_skips_test to Port class. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e911dfa0044c9971e4ce6166f1074db4a98b32ca..2a8e815d42ac91be6c8c5f2c1446860647b3a6e5 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
@@ -192,6 +192,8 @@ class CopyExistingBaselinesInternal(BaseInternalRebaselineCommand):
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):
_log.debug("%s is skipped on %s.", test_name, port.name())
continue
@@ -425,7 +427,7 @@ class AbstractParallelRebaselineCommand(AbstractRebaseliningCommand):
generic_expectations = TestExpectations(port, tests=tests, include_overrides=False)
full_expectations = TestExpectations(port, tests=tests, include_overrides=True)
for test in tests:
- if self._port_skips_test(port, test, generic_expectations, full_expectations):
+ if port.skips_test(test, generic_expectations, full_expectations):
for test_configuration in port.all_test_configurations():
if test_configuration.version == port.test_configuration().version:
to_remove.append((test, test_configuration))
@@ -443,17 +445,6 @@ class AbstractParallelRebaselineCommand(AbstractRebaseliningCommand):
path = port.path_to_generic_test_expectations_file()
self._tool.filesystem.write_text_file(path, expectations_string)
- @staticmethod
- def _port_skips_test(port, test, generic_expectations, full_expectations):
- fs = port.host.filesystem
- if port.default_smoke_test_only():
- smoke_test_filename = fs.join(port.layout_tests_dir(), 'SmokeTests')
- if fs.exists(smoke_test_filename) and test not in fs.read_text_file(smoke_test_filename):
- return True
-
- return (SKIP in full_expectations.get_expectations(test) and
- SKIP not in generic_expectations.get_expectations(test))
qyearsley 2016/10/27 00:47:11 It seems like this should just be (SKIP in full_ex
Dirk Pranke 2016/10/27 00:53:45 Unfortunately, I don't remember why we did this. Y
-
def _run_in_parallel(self, commands):
if not commands:
return {}
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698