| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 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 """Set of utilities common to build masters.""" | 6 """Set of utilities common to build masters.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 | 10 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 if self._ShouldRunTest(tests, 'page_cycler_http'): | 172 if self._ShouldRunTest(tests, 'page_cycler_http'): |
| 173 factory_cmd_obj.AddPageCyclerTests(show_perf_results, perf_id=perf_id, | 173 factory_cmd_obj.AddPageCyclerTests(show_perf_results, perf_id=perf_id, |
| 174 http=True) | 174 http=True) |
| 175 if self._ShouldRunTest(tests, 'startup'): | 175 if self._ShouldRunTest(tests, 'startup'): |
| 176 factory_cmd_obj.AddStartupTests(show_perf_results, perf_id=perf_id) | 176 factory_cmd_obj.AddStartupTests(show_perf_results, perf_id=perf_id) |
| 177 factory_cmd_obj.AddNewTabUITests(show_perf_results, perf_id=perf_id) | 177 factory_cmd_obj.AddNewTabUITests(show_perf_results, perf_id=perf_id) |
| 178 if self._ShouldRunTest(tests, 'memory'): | 178 if self._ShouldRunTest(tests, 'memory'): |
| 179 factory_cmd_obj.AddMemoryTests(show_perf_results, perf_id=perf_id) | 179 factory_cmd_obj.AddMemoryTests(show_perf_results, perf_id=perf_id) |
| 180 if self._ShouldRunTest(tests, 'tab_switching'): | 180 if self._ShouldRunTest(tests, 'tab_switching'): |
| 181 factory_cmd_obj.AddTabSwitchingTests(show_perf_results, perf_id=perf_id) | 181 factory_cmd_obj.AddTabSwitchingTests(show_perf_results, perf_id=perf_id) |
| 182 if self._ShouldRunTest(tests, 'sunspider'): |
| 183 factory_cmd_obj.AddSunSpiderTests(show_perf_results, perf_id=perf_id) |
| 184 if self._ShouldRunTest(tests, 'v8_benchmark'): |
| 185 factory_cmd_obj.AddV8BenchmarkTests(show_perf_results, perf_id=perf_id) |
| 182 if self._ShouldRunTest(tests, 'purify_base'): | 186 if self._ShouldRunTest(tests, 'purify_base'): |
| 183 factory_cmd_obj.AddPurifyTest('base') | 187 factory_cmd_obj.AddPurifyTest('base') |
| 184 if self._ShouldRunTest(tests, 'purify_webkit'): | 188 if self._ShouldRunTest(tests, 'purify_webkit'): |
| 185 factory_cmd_obj.AddPurifyTest('test_shell') | 189 factory_cmd_obj.AddPurifyTest('test_shell') |
| 186 if self._ShouldRunTest(tests, 'purify_net'): | 190 if self._ShouldRunTest(tests, 'purify_net'): |
| 187 factory_cmd_obj.AddPurifyTest('net') | 191 factory_cmd_obj.AddPurifyTest('net') |
| 188 if self._ShouldRunTest(tests, 'purify_unit'): | 192 if self._ShouldRunTest(tests, 'purify_unit'): |
| 189 factory_cmd_obj.AddPurifyTest('unit') | 193 factory_cmd_obj.AddPurifyTest('unit') |
| 190 if self._ShouldRunTest(tests, 'purify_ui'): | 194 if self._ShouldRunTest(tests, 'purify_ui'): |
| 191 factory_cmd_obj.AddPurifyTest('ui', timeout=3600) | 195 factory_cmd_obj.AddPurifyTest('ui', timeout=3600) |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 tests: list of tests to run, chosen from | 336 tests: list of tests to run, chosen from |
| 333 ('unit', 'ui', 'ui-single', 'test_shell', 'webkit', 'plugin', | 337 ('unit', 'ui', 'ui-single', 'test_shell', 'webkit', 'plugin', |
| 334 'page_cycler_http', 'startup', 'selenium', 'reliability', | 338 'page_cycler_http', 'startup', 'selenium', 'reliability', |
| 335 'purify_webkit', 'purify_base', 'purify_net', 'purify_unit', | 339 'purify_webkit', 'purify_base', 'purify_net', 'purify_unit', |
| 336 'purify_layout', 'purify_ui', 'playback', 'node_leak', | 340 'purify_layout', 'purify_ui', 'playback', 'node_leak', |
| 337 'tab_switching', 'omnibox', 'memory, 'interactive_ui', 'base', | 341 'tab_switching', 'omnibox', 'memory, 'interactive_ui', 'base', |
| 338 'net', 'media', 'printing', 'valgrind_net', 'page_cycler', | 342 'net', 'media', 'printing', 'valgrind_net', 'page_cycler', |
| 339 'valgrind_ipc', 'valgrind_unit', 'valgrind_base', | 343 'valgrind_ipc', 'valgrind_unit', 'valgrind_base', |
| 340 'valgrind_googleurl', 'valgrind_test_shell', | 344 'valgrind_googleurl', 'valgrind_test_shell', |
| 341 'valgrind_media', 'valgrind_ui', 'valgrind_printing', | 345 'valgrind_media', 'valgrind_ui', 'valgrind_printing', |
| 342 'dom_checker'). | 346 'dom_checker', 'sunspider', 'v8_benchmark'). |
| 343 The 'unit' suite includes the IPC tests. | 347 The 'unit' suite includes the IPC tests. |
| 344 arhive_webkit_results: whether to archive the webkit test output | 348 arhive_webkit_results: whether to archive the webkit test output |
| 345 show_perf_results: whether to add links to the test perf result graphs | 349 show_perf_results: whether to add links to the test perf result graphs |
| 346 perf_id: if show_perf_results is true, perf_id is the name of the slave | 350 perf_id: if show_perf_results is true, perf_id is the name of the slave |
| 347 on the perf result page. | 351 on the perf result page. |
| 348 archive_build: whether to archive the built executable and its symbols | 352 archive_build: whether to archive the built executable and its symbols |
| 349 check_deps: whether to run a step that checks source-file dependencies | 353 check_deps: whether to run a step that checks source-file dependencies |
| 350 gclient_custom_deps: a list of tuples (name, custom_dependency) to append | 354 gclient_custom_deps: a list of tuples (name, custom_dependency) to append |
| 351 to the gclient spec created from the svnurl and test list by | 355 to the gclient spec created from the svnurl and test list by |
| 352 _BuildGClientSpec(). Names should be strings; dependencies should | 356 _BuildGClientSpec(). Names should be strings; dependencies should |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 | 638 |
| 635 Args: | 639 Args: |
| 636 build: The build we want to extract the latest revision of. | 640 build: The build we want to extract the latest revision of. |
| 637 | 641 |
| 638 Returns: | 642 Returns: |
| 639 The latest revision of that build, or None, if none. | 643 The latest revision of that build, or None, if none. |
| 640 """ | 644 """ |
| 641 revisions = getAllRevisions(build) | 645 revisions = getAllRevisions(build) |
| 642 if revisions: | 646 if revisions: |
| 643 return max(revisions) | 647 return max(revisions) |
| OLD | NEW |