OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
6 | 6 |
7 DEPS = [ | 7 DEPS = [ |
8 'auto_bisect', | 8 'auto_bisect', |
9 'bisect_tester', | 9 'bisect_tester', |
10 'depot_tools/bot_update', | 10 'depot_tools/bot_update', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 'TARGET_PLATFORM': 'android', | 97 'TARGET_PLATFORM': 'android', |
98 } | 98 } |
99 kwargs.update(bot_config.get('kwargs', {})) | 99 kwargs.update(bot_config.get('kwargs', {})) |
100 api.chromium_android.configure_from_properties(recipe_config, **kwargs) | 100 api.chromium_android.configure_from_properties(recipe_config, **kwargs) |
101 api.chromium.set_config(recipe_config, **kwargs) | 101 api.chromium.set_config(recipe_config, **kwargs) |
102 api.chromium_android.c.set_val({'deps_file': 'DEPS'}) | 102 api.chromium_android.c.set_val({'deps_file': 'DEPS'}) |
103 api.gclient.set_config('chromium') | 103 api.gclient.set_config('chromium') |
104 for c in bot_config.get('gclient_apply_config', []): | 104 for c in bot_config.get('gclient_apply_config', []): |
105 api.gclient.apply_config(c) | 105 api.gclient.apply_config(c) |
106 update_step = api.auto_bisect.ensure_checkout() | 106 update_step = api.auto_bisect.ensure_checkout() |
| 107 api.path.c.dynamic_paths['catapult'] = api.m.auto_bisect.working_dir.join( |
| 108 'catapult') |
107 api.chromium_android.clean_local_files() | 109 api.chromium_android.clean_local_files() |
108 | 110 |
109 bot_db = api.chromium_tests.create_bot_db_from_master_dict(mastername, | 111 bot_db = api.chromium_tests.create_bot_db_from_master_dict(mastername, |
110 master_dict) | 112 master_dict) |
111 | 113 |
112 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db) | 114 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db) |
113 | 115 |
114 | 116 |
115 def GenTests(api): | 117 def GenTests(api): |
116 config_json_main = { | 118 config_json_main = { |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 # multiple_device_status | 691 # multiple_device_status |
690 api.step_data('Debug Info', retcode=1) + | 692 api.step_data('Debug Info', retcode=1) + |
691 api.override_step_data('device_status (3)', | 693 api.override_step_data('device_status (3)', |
692 api.json.output(working_device)) + | 694 api.json.output(working_device)) + |
693 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( | 695 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( |
694 good_revision_hash, bad_revision_hash), | 696 good_revision_hash, bad_revision_hash), |
695 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ | 697 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ |
696 good_revision_hash, 'ignored']])) + | 698 good_revision_hash, 'ignored']])) + |
697 api.step_data('Post bisect results', | 699 api.step_data('Post bisect results', |
698 stdout=api.json.output({'status_code': 200}))) | 700 stdout=api.json.output({'status_code': 200}))) |
OLD | NEW |