8 | | The script does the following for each platform: |
9 | | * Compile a list of tests that need rebaseline. |
10 | | * Download test result archive from buildbot for the platform. |
11 | | * Extract baselines from the archive file for all identified files. |
12 | | * Add new baselines to SVN or Git repository. |
13 | | * For each test that has been rebaselined, remove this platform option from the test in [wiki:TestExpectations TestExpectations files]. If no other platform options remaining after removal, delete the test from the file. |
14 | | |
15 | | After new baselines are generated, the tool launches a html page to compare the old and new baselines. (EDIT: No it doesn't. See https://lists.webkit.org/pipermail/webkit-dev/2011-November/018527.html ) The html can be disabled with `--no_html_results` option. |
| 8 | * Grabs the results off the buildbot and puts them in the right place in your local repository. |
| 9 | * Updates TestExpectations to remove the appropriate lines for rebaselined tests. |
| 10 | * Runs webkit-patch optimize-baselines to remove duplicate baselines across ports. |
18 | | * Make sure the test files exist in repository and the build bots have cycled at least once after they were committed. If you are not sure, check the Release version of [http://build.chromium.org/buildbot/layout_test_results/ buildbot layout archive] to see whether your test results are available. By default, the rebaselining tool retrieves new baselines from the release version of buildbot layout test archive. |
19 | | * Update `TestExpectations`: add flag `REBASELINE` to the tests that need to be rebaselined. |
20 | | * Run rebaselining script: `Tools/Scripts/webkit-patch rebaseline-expectations` |
21 | | * If the script runs successfully, new baselines (expected files) are added to SVN repository and the rebaselined tests are removed from `TestExpectations`. |
22 | | * The tool launches a html page to compare the old and new baselines. (EDIT: No it doesn't. See https://lists.webkit.org/pipermail/webkit-dev/2011-November/018527.html ) Check the new baseline changes are expected. |
23 | | * Prepare a patch with the new baselines and `TestExpectations`, review the changes and then commit the patch. |
| 13 | Make sure the test files exist in repository (i.e. you've synced) and the build bots have cycled at least once. If you are not sure, check [http://trac.webkit.org/export/HEAD/trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/garden-o-matic.html garden-o-matic] or the buildbot waterfall to see whether your test results are available. |
38 | | * Create a patch, review the changes and commit. |
| 25 | Finds all the tests with a REBASELINE modifier in TestExpectations and rebaselines appropriately: |
| 26 | {{{ |
| 27 | webkit-patch rebaseline-expectations |
| 28 | }}} |
| 29 | |
| 30 | For example, |
| 31 | {{{ |
| 32 | BUG1234 REBASELINE : path/to/test1.html = IMAGE |
| 33 | BUG1234 REBASELINE : path/to/test2.html = IMAGE+TEXT |
| 34 | BUG5678 REBASELINE WIN LINUX : path/to/test3.html = TEXT |
| 35 | }}} |
| 36 | |
| 37 | Rebaselines just the png for test1.html, the png and txt for test2.html and just the txt for test3.html. |