Chromium Code Reviews
DescriptionWhen rebaselining testharness tests with new all-PASS results, remove the baseline.
For testharness.js tests where the result just contains PASS lines with no
console errors or warnings, our way of representing that is to have no baseline
(no -expected.txt file). So, when rebaselining, the proper "baseline" for tests
like this is to have no baseline.
Example case for how I think this might work: Let's imagine there's a
testharness test which fails on mac and linux, but passes on windows. The
existing baselines may be:
LayoutTests/platform/mac/foo/bar-expected.txt
LayoutTests/platform/linux/foo/bar-expected.txt
If we rebaseline and it now passes on linux, then I imagine
that the copy-existing-baselines baselines step would copy
linux/foo/bar-expected.txt to linux-precise/, and the
baselines in both linux/ and linux-precise/ would be deleted
on the rebaseline-test step. Then, we'd be left with just
LayoutTests/platform/mac/foo/bar-expected.txt.
Although I haven't really tested out this whole flow yet.
This CL also extracts a function import is_all_pass_testharness_result from
webkitpy.layout_tests.models.testharness_results to avoid duplicating code.
BUG=654030
Committed: https://crrev.com/0bb11a3670a64f56774881350f8f4b0035ba2eeb
Cr-Commit-Position: refs/heads/master@{#424509}
Patch Set 1 #Patch Set 2 : Revert unrelated changes in rebaseline_unittest #Patch Set 3 : Undo docstrings that no longer apply #
Messages
Total messages: 16 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||