| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """API for the bisect recipe module. | 5 """API for the bisect recipe module. |
| 6 | 6 |
| 7 This API is meant to enable the bisect recipe to bisect any chromium-supported | 7 This API is meant to enable the bisect recipe to bisect any chromium-supported |
| 8 platform for any test that can be run via buildbot, perf or otherwise. | 8 platform for any test that can be run via buildbot, perf or otherwise. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 self.m.chromium_tests.download_and_unzip_build( | 275 self.m.chromium_tests.download_and_unzip_build( |
| 276 mastername, buildername, update_step, bot_db, | 276 mastername, buildername, update_step, bot_db, |
| 277 build_archive_url=build_archive_url, | 277 build_archive_url=build_archive_url, |
| 278 build_revision=test_config_params['parent_got_revision'], | 278 build_revision=test_config_params['parent_got_revision'], |
| 279 override_bot_type='tester') | 279 override_bot_type='tester') |
| 280 | 280 |
| 281 tests = [self.m.chromium_tests.steps.BisectTest(test_config_params)] | 281 tests = [self.m.chromium_tests.steps.BisectTest(test_config_params)] |
| 282 | 282 |
| 283 if not tests: # pragma: no cover | 283 if not tests: # pragma: no cover |
| 284 return | 284 return |
| 285 self.m.chromium_tests.configure_swarming( # pragma: no cover | 285 self.m.chromium_swarming.configure_swarming( |
| 286 'chromium', precommit=False, mastername=mastername) | 286 'chromium', precommit=False, mastername=mastername) |
| 287 test_runner = self.m.chromium_tests.create_test_runner(self.m, tests) | 287 test_runner = self.m.chromium_tests.create_test_runner(self.m, tests) |
| 288 | 288 |
| 289 bot_config_object = self.m.chromium_tests.create_bot_config_object( | 289 bot_config_object = self.m.chromium_tests.create_bot_config_object( |
| 290 mastername, buildername) | 290 mastername, buildername) |
| 291 with self.m.chromium_tests.wrap_chromium_tests(bot_config_object, tests): | 291 with self.m.chromium_tests.wrap_chromium_tests(bot_config_object, tests): |
| 292 if self.m.chromium.c.TARGET_PLATFORM == 'android' and not skip_download: | 292 if self.m.chromium.c.TARGET_PLATFORM == 'android' and not skip_download: |
| 293 deploy_apks = [] | 293 deploy_apks = [] |
| 294 deploy_args = [] | 294 deploy_args = [] |
| 295 if self.internal_bisect: # pragma: no cover | 295 if self.internal_bisect: # pragma: no cover |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 affected_files, update_step, self.bot_db) | 385 affected_files, update_step, self.bot_db) |
| 386 finally: | 386 finally: |
| 387 if api.chromium.c.TARGET_PLATFORM == 'android': | 387 if api.chromium.c.TARGET_PLATFORM == 'android': |
| 388 if self.internal_bisect: # pragma: no cover | 388 if self.internal_bisect: # pragma: no cover |
| 389 api.chromium_android.init_and_sync( | 389 api.chromium_android.init_and_sync( |
| 390 gclient_config=api.chromium_android.c.internal_dir_name, | 390 gclient_config=api.chromium_android.c.internal_dir_name, |
| 391 use_bot_update=True) | 391 use_bot_update=True) |
| 392 else: | 392 else: |
| 393 api.bot_update.ensure_checkout() | 393 api.bot_update.ensure_checkout() |
| 394 api.chromium_android.common_tests_final_steps() | 394 api.chromium_android.common_tests_final_steps() |
| OLD | NEW |