| 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 infra.libs.infra_types import freeze, thaw |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'adb', | 8 'adb', |
| 9 'bot_update', | 9 'bot_update', |
| 10 'chromium', | 10 'chromium', |
| 11 'chromium_android', | 11 'chromium_android', |
| 12 'chromium_tests', | 12 'chromium_tests', |
| 13 'gclient', | 13 'gclient', |
| 14 'json', | 14 'json', |
| 15 'path', | 15 'path', |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 'set_component_rev': {'name': 'src/v8', 'rev_str': '%s'}, | 96 'set_component_rev': {'name': 'src/v8', 'rev_str': '%s'}, |
| 97 }, | 97 }, |
| 98 }, | 98 }, |
| 99 }) | 99 }) |
| 100 | 100 |
| 101 def RunSteps(api): | 101 def RunSteps(api): |
| 102 mastername = api.properties['mastername'] | 102 mastername = api.properties['mastername'] |
| 103 buildername = api.properties['buildername'] | 103 buildername = api.properties['buildername'] |
| 104 # TODO(akuegel): Move the configs in builders.py in chromium_tests to this | 104 # TODO(akuegel): Move the configs in builders.py in chromium_tests to this |
| 105 # recipe, and get rid of duplications. | 105 # recipe, and get rid of duplications. |
| 106 builder = dict(BUILDERS[mastername][buildername]) | 106 builder = thaw(BUILDERS[mastername][buildername]) |
| 107 builder_config = builder.get('recipe_config', 'base_config') | 107 builder_config = builder.get('recipe_config', 'base_config') |
| 108 kwargs = { | 108 kwargs = { |
| 109 'REPO_NAME':'src', | 109 'REPO_NAME':'src', |
| 110 'REPO_URL':REPO_URL, | 110 'REPO_URL':REPO_URL, |
| 111 'INTERNAL':False, | 111 'INTERNAL':False, |
| 112 'BUILD_CONFIG':'Release', | 112 'BUILD_CONFIG':'Release', |
| 113 'TARGET_PLATFORM':'android', | 113 'TARGET_PLATFORM':'android', |
| 114 } | 114 } |
| 115 | 115 |
| 116 api.chromium_android.set_config(builder_config, **kwargs) | 116 api.chromium_android.set_config(builder_config, **kwargs) |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 api.override_step_data( | 249 api.override_step_data( |
| 250 'read test spec', | 250 'read test spec', |
| 251 api.json.output({ | 251 api.json.output({ |
| 252 "Android Nexus5 Perf": { | 252 "Android Nexus5 Perf": { |
| 253 "scripts": [ | 253 "scripts": [ |
| 254 { | 254 { |
| 255 "name": "host_info", | 255 "name": "host_info", |
| 256 "script": "host_info.py" | 256 "script": "host_info.py" |
| 257 }]}})) + | 257 }]}})) + |
| 258 api.step_data('host_info', retcode=1)) | 258 api.step_data('host_info', retcode=1)) |
| OLD | NEW |