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.bot_update.ensure_checkout() | 106 update_step = api.bot_update.ensure_checkout() |
| 107 api.path.c.dynamic_paths['catapult'] = api.path['slave_build'].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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 ('refs/heads/master@{#%s} (2)' % local_bisect_config[ | 687 ('refs/heads/master@{#%s} (2)' % local_bisect_config[ |
686 'good_revision']), | 688 'good_revision']), |
687 stdout=api.json.output( | 689 stdout=api.json.output( |
688 {'git_sha': good_revision_hash}))+ | 690 {'git_sha': good_revision_hash}))+ |
689 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( | 691 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( |
690 good_revision_hash, bad_revision_hash), | 692 good_revision_hash, bad_revision_hash), |
691 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ | 693 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ |
692 good_revision_hash, 'ignored']])) + | 694 good_revision_hash, 'ignored']])) + |
693 api.step_data('Post bisect results', | 695 api.step_data('Post bisect results', |
694 stdout=api.json.output({'status_code': 200}))) | 696 stdout=api.json.output({'status_code': 200}))) |
OLD | NEW |