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

Issue 2450383002: Refactoring: Move _port_skips_test to Port class. (Closed)

Created:
4 years, 1 month ago by qyearsley
Modified:
4 years, 1 month ago
Reviewers:
Dirk Pranke
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Move _port_skips_test to Port class. As part of rebaselining, when copying existing baselines, we don't want to make new platform-specific baseline files for platforms where tests are skipped. In particular, we don't want to make new baselines for android for non-smoke-tests now since non-smoke-tests are skipped on android. There's already logic in the copy-existing-baselines to do this; it uses the TestExpectations.get_expectations method, which, as far as I understand, returns expectations based on test expectations files, but not based on whether the port only runs smoke tests. Meanwhile, elsewhere in rebaseline.py, there's already logic to check whether a test is skipped on a particular port including because it's not a smoke test. The purpose of this CL is to extract that method out so it could be re-used. An alternative to doing this would be to change TestExpectations.get_expectations to also include "SKIP" if port.default_smoke_test_only() and the test is in the smoke tests file. (Either way, there should be a centralized way of checking whether a test runs on a port, and this should be used in both places in rebaseline.py.) BUG=655196 Committed: https://crrev.com/f437383bbfd2cd52b8cacf0adff4e4fb17293127 Cr-Commit-Position: refs/heads/master@{#428067}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -13 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py View 3 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py View 3 chunks +3 lines, -12 lines 2 comments Download

Messages

Total messages: 10 (3 generated)
qyearsley
https://codereview.chromium.org/2450383002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py (left): https://codereview.chromium.org/2450383002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py#oldcode455 third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py:455: SKIP not in generic_expectations.get_expectations(test)) It seems like this should ...
4 years, 1 month ago (2016-10-27 00:47:11 UTC) #2
Dirk Pranke
lgtm. https://codereview.chromium.org/2450383002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py (left): https://codereview.chromium.org/2450383002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py#oldcode455 third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py:455: SKIP not in generic_expectations.get_expectations(test)) On 2016/10/27 00:47:11, qyearsley ...
4 years, 1 month ago (2016-10-27 00:53:45 UTC) #3
qyearsley
On 2016/10/27 at 00:53:45, dpranke wrote: > lgtm. > > https://codereview.chromium.org/2450383002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py > File third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py (left): ...
4 years, 1 month ago (2016-10-27 01:01:41 UTC) #4
Dirk Pranke
On 2016/10/27 01:01:41, qyearsley wrote: > Before submitting this: What do you think about adding ...
4 years, 1 month ago (2016-10-27 01:25:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2450383002/1
4 years, 1 month ago (2016-10-27 16:27:53 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-27 17:25:43 UTC) #8
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 17:31:18 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f437383bbfd2cd52b8cacf0adff4e4fb17293127
Cr-Commit-Position: refs/heads/master@{#428067}

Powered by Google App Engine
This is Rietveld 408576698