| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Rebaselining tool that automatically produces baselines for all platforms. | 6 """Rebaselining tool that automatically produces baselines for all platforms. |
| 7 | 7 |
| 8 The script does the following for each platform specified: | 8 The script does the following for each platform specified: |
| 9 1. Compile a list of tests that need rebaselining. | 9 1. Compile a list of tests that need rebaselining. |
| 10 2. Download test result archive from buildbot for the platform. | 10 2. Download test result archive from buildbot for the platform. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 import webbrowser | 30 import webbrowser |
| 31 import zipfile | 31 import zipfile |
| 32 | 32 |
| 33 from layout_package import path_utils | 33 from layout_package import path_utils |
| 34 from layout_package import test_expectations | 34 from layout_package import test_expectations |
| 35 from test_types import image_diff | 35 from test_types import image_diff |
| 36 from test_types import text_diff | 36 from test_types import text_diff |
| 37 | 37 |
| 38 BASELINE_SUFFIXES = ['.txt', '.png', '.checksum'] | 38 BASELINE_SUFFIXES = ['.txt', '.png', '.checksum'] |
| 39 REBASELINE_PLATFORM_ORDER = ['mac', 'win', 'win-xp', 'linux'] | 39 REBASELINE_PLATFORM_ORDER = ['mac', 'win', 'win-xp', 'linux'] |
| 40 ARCHIVE_DIR_NAME_DICT = {'win': 'webkit-dbg-vista', | 40 ARCHIVE_DIR_NAME_DICT = {'win': 'webkit-rel', |
| 41 'win-vista': 'webkit-dbg-vista', | 41 'win-vista': 'webkit-dbg-vista', |
| 42 'win-xp': 'webkit-rel', | 42 'win-xp': 'webkit-rel', |
| 43 'mac': 'webkit-rel-mac5', | 43 'mac': 'webkit-rel-mac5', |
| 44 'linux': 'webkit-rel-linux', | 44 'linux': 'webkit-rel-linux', |
| 45 'win-canary': 'webkit-dbg-vista', | 45 'win-canary': 'webkit-rel-webkit-org', |
| 46 'win-vista-canary': 'webkit-dbg-vista', | 46 'win-vista-canary': 'webkit-dbg-vista', |
| 47 'win-xp-canary': 'webkit-rel-webkit-org', | 47 'win-xp-canary': 'webkit-rel-webkit-org', |
| 48 'mac-canary': 'webkit-rel-mac-webkit-org', | 48 'mac-canary': 'webkit-rel-mac-webkit-org', |
| 49 'linux-canary': 'webkit-rel-linux-webkit-org'} | 49 'linux-canary': 'webkit-rel-linux-webkit-org'} |
| 50 | 50 |
| 51 def RunShell(command, print_output=False): | 51 def RunShell(command, print_output=False): |
| 52 """Executes a command and returns the output. | 52 """Executes a command and returns the output. |
| 53 | 53 |
| 54 Args: | 54 Args: |
| 55 command: program and arguments. | 55 command: program and arguments. |
| (...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 rebaseline_platforms, | 971 rebaseline_platforms, |
| 972 rebaselining_tests) | 972 rebaselining_tests) |
| 973 html_generator.GenerateHtml() | 973 html_generator.GenerateHtml() |
| 974 html_generator.ShowHtml() | 974 html_generator.ShowHtml() |
| 975 LogDashedString('Rebaselining result comparison done', None) | 975 LogDashedString('Rebaselining result comparison done', None) |
| 976 | 976 |
| 977 sys.exit(0) | 977 sys.exit(0) |
| 978 | 978 |
| 979 if '__main__' == __name__: | 979 if '__main__' == __name__: |
| 980 main() | 980 main() |
| OLD | NEW |