OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 7 |
8 DEPS = [ | 8 DEPS = [ |
9 'adb', | 9 'adb', |
10 'chromium', | 10 'chromium', |
11 'chromium_android', | 11 'chromium_android', |
12 'chromium_tests', | 12 'chromium_tests', |
13 'depot_tools/bot_update', | 13 'depot_tools/bot_update', |
14 'depot_tools/gclient', | 14 'depot_tools/gclient', |
| 15 'depot_tools/infra_paths', |
15 'recipe_engine/json', | 16 'recipe_engine/json', |
16 'recipe_engine/path', | 17 'recipe_engine/path', |
17 'recipe_engine/properties', | 18 'recipe_engine/properties', |
18 'recipe_engine/python', | 19 'recipe_engine/python', |
19 'recipe_engine/step', | 20 'recipe_engine/step', |
20 'test_utils', | 21 'test_utils', |
21 ] | 22 ] |
22 | 23 |
23 | 24 |
24 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git' | 25 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git' |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 test_spec = api.chromium_tests.read_test_spec(api, test_spec_file) | 134 test_spec = api.chromium_tests.read_test_spec(api, test_spec_file) |
134 | 135 |
135 scripts_compile_targets = \ | 136 scripts_compile_targets = \ |
136 api.chromium_tests.get_compile_targets_for_scripts().json.output | 137 api.chromium_tests.get_compile_targets_for_scripts().json.output |
137 | 138 |
138 builder['tests'] = api.chromium_tests.generate_tests_from_test_spec( | 139 builder['tests'] = api.chromium_tests.generate_tests_from_test_spec( |
139 api, test_spec, builder, buildername, mastername, False, None, | 140 api, test_spec, builder, buildername, mastername, False, None, |
140 scripts_compile_targets, [api.chromium_tests.steps.generate_script], | 141 scripts_compile_targets, [api.chromium_tests.steps.generate_script], |
141 bot_update_step) | 142 bot_update_step) |
142 | 143 |
143 api.path['checkout'] = api.path['slave_build'].join('src') | 144 api.path['checkout'] = api.infra_paths['slave_build'].join('src') |
144 api.chromium_android.clean_local_files() | 145 api.chromium_android.clean_local_files() |
145 | 146 |
146 api.chromium_android.download_build(bucket=builder['bucket'], | 147 api.chromium_android.download_build(bucket=builder['bucket'], |
147 path=builder['path'](api)) | 148 path=builder['path'](api)) |
148 | 149 |
149 api.chromium_android.common_tests_setup_steps(perf_setup=True) | 150 api.chromium_android.common_tests_setup_steps(perf_setup=True) |
150 | 151 |
151 required_apks = builder.get('required_apks', []) | 152 required_apks = builder.get('required_apks', []) |
152 for apk in required_apks: | 153 for apk in required_apks: |
153 api.chromium_android.adb_install_apk(apk) | 154 api.chromium_android.adb_install_apk(apk) |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 mastername='chromium.perf', | 272 mastername='chromium.perf', |
272 buildername='Android Nexus5 Perf (1)', | 273 buildername='Android Nexus5 Perf (1)', |
273 parent_buildername='parent_buildername', | 274 parent_buildername='parent_buildername', |
274 parent_buildnumber='1729', | 275 parent_buildnumber='1729', |
275 parent_revision='deadbeef', | 276 parent_revision='deadbeef', |
276 revision='deadbeef', | 277 revision='deadbeef', |
277 slavename='slavename', | 278 slavename='slavename', |
278 target='Release') + | 279 target='Release') + |
279 api.override_step_data( | 280 api.override_step_data( |
280 'perf_test.foo', retcode=87)) | 281 'perf_test.foo', retcode=87)) |
OLD | NEW |