| 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 'bot_update', | 10 'bot_update', |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 kwargs.update(bot_config.get('kwargs', {})) | 101 kwargs.update(bot_config.get('kwargs', {})) |
| 102 api.chromium_android.configure_from_properties(recipe_config, **kwargs) | 102 api.chromium_android.configure_from_properties(recipe_config, **kwargs) |
| 103 api.chromium.set_config(recipe_config, **kwargs) | 103 api.chromium.set_config(recipe_config, **kwargs) |
| 104 api.chromium_android.c.set_val({'deps_file': 'DEPS'}) | 104 api.chromium_android.c.set_val({'deps_file': 'DEPS'}) |
| 105 api.gclient.set_config('chromium') | 105 api.gclient.set_config('chromium') |
| 106 for c in bot_config.get('gclient_apply_config', []): | 106 for c in bot_config.get('gclient_apply_config', []): |
| 107 api.gclient.apply_config(c) | 107 api.gclient.apply_config(c) |
| 108 update_step = api.bot_update.ensure_checkout() | 108 update_step = api.bot_update.ensure_checkout() |
| 109 api.chromium_android.clean_local_files() | 109 api.chromium_android.clean_local_files() |
| 110 | 110 |
| 111 bot_db = api.chromium_tests.create_bot_db_from_master_dict( |
| 112 mastername, master_dict) |
| 113 |
| 111 api.auto_bisect.start_try_job(api, update_step=update_step, | 114 api.auto_bisect.start_try_job(api, update_step=update_step, |
| 112 master_dict=master_dict) | 115 bot_db=bot_db) |
| 113 | 116 |
| 114 def GenTests(api): | 117 def GenTests(api): |
| 115 config_json_main = { | 118 config_json_main = { |
| 116 "command": ("./tools/perf/run_benchmark -v --browser=android-chrome " | 119 "command": ("./tools/perf/run_benchmark -v --browser=android-chrome " |
| 117 "sunspider"), | 120 "sunspider"), |
| 118 "max_time_minutes": "25", | 121 "max_time_minutes": "25", |
| 119 "repeat_count": "1", | 122 "repeat_count": "1", |
| 120 "truncate_percent": "25", | 123 "truncate_percent": "25", |
| 121 "target_arch": "ia32", | 124 "target_arch": "ia32", |
| 122 } | 125 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 stdout=api.raw_io.output('/tmp/dummy1')) | 300 stdout=api.raw_io.output('/tmp/dummy1')) |
| 298 + api.step_data('saving json to temp file', | 301 + api.step_data('saving json to temp file', |
| 299 stdout=api.raw_io.output('/tmp/dummy2')) | 302 stdout=api.raw_io.output('/tmp/dummy2')) |
| 300 + api.properties(bisect_config=bisect_config) | 303 + api.properties(bisect_config=bisect_config) |
| 301 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') | 304 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') |
| 302 + api.bisect_tester(tempfile='/tmp/dummy') | 305 + api.bisect_tester(tempfile='/tmp/dummy') |
| 303 + api.properties(parent_got_revision='1111111') | 306 + api.properties(parent_got_revision='1111111') |
| 304 + api.properties( | 307 + api.properties( |
| 305 parent_build_archive_url='gs://test-domain/test-archive.zip') | 308 parent_build_archive_url='gs://test-domain/test-archive.zip') |
| 306 ) | 309 ) |
| OLD | NEW |