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