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 DEPS = [ | 7 DEPS = [ |
8 'adb', | 8 'adb', |
9 'chromium', | 9 'chromium', |
10 'chromium_android', | 10 'chromium_android', |
11 'depot_tools/infra_paths', | |
11 'recipe_engine/json', | 12 'recipe_engine/json', |
12 'recipe_engine/path', | 13 'recipe_engine/path', |
13 'recipe_engine/properties', | 14 'recipe_engine/properties', |
14 'recipe_engine/raw_io', | 15 'recipe_engine/raw_io', |
15 'recipe_engine/step', | 16 'recipe_engine/step', |
16 ] | 17 ] |
17 | 18 |
18 BUILDERS = freeze({ | 19 BUILDERS = freeze({ |
19 'basic_builder': { | 20 'basic_builder': { |
20 'target': 'Release', | 21 'target': 'Release', |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 REPO_URL='svn://svn.chromium.org/chrome/trunk/src', | 107 REPO_URL='svn://svn.chromium.org/chrome/trunk/src', |
107 REPO_NAME='src/repo', | 108 REPO_NAME='src/repo', |
108 INTERNAL=True, | 109 INTERNAL=True, |
109 BUILD_CONFIG='Release') | 110 BUILD_CONFIG='Release') |
110 | 111 |
111 api.chromium_android.c.get_app_manifest_vars = True | 112 api.chromium_android.c.get_app_manifest_vars = True |
112 api.chromium_android.c.coverage = config.get('coverage', False) | 113 api.chromium_android.c.coverage = config.get('coverage', False) |
113 api.chromium_android.c.asan_symbolize = True | 114 api.chromium_android.c.asan_symbolize = True |
114 | 115 |
115 if config.get('adb_vendor_keys'): | 116 if config.get('adb_vendor_keys'): |
116 # TODO(phajdan.jr): Remove path['build'] usage, http://crbug.com/437264 . | 117 # TODO(phajdan.jr): Remove infra_paths['build'] usage, http://crbug.com/4372 64 . |
Sergiy Byelozyorov
2016/04/26 14:41:06
nit: long line
| |
117 api.chromium.c.env.ADB_VENDOR_KEYS = api.path['build'].join( | 118 api.chromium.c.env.ADB_VENDOR_KEYS = api.infra_paths['build'].join( |
118 'site_config', '.adb_key') | 119 'site_config', '.adb_key') |
119 | 120 |
120 api.chromium_android.init_and_sync(use_bot_update=False) | 121 api.chromium_android.init_and_sync(use_bot_update=False) |
121 | 122 |
122 api.chromium.runhooks() | 123 api.chromium.runhooks() |
123 api.chromium_android.run_tree_truth(additional_repos=['foo']) | 124 api.chromium_android.run_tree_truth(additional_repos=['foo']) |
124 assert 'MAJOR' in api.chromium.get_version() | 125 assert 'MAJOR' in api.chromium.get_version() |
125 | 126 |
126 if config.get('build', False): | 127 if config.get('build', False): |
127 api.chromium.compile() | 128 api.chromium.compile() |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
360 'Created xml report file at file:///path/to/testResult.xml', | 361 'Created xml report file at file:///path/to/testResult.xml', |
361 stream='stdout')) + | 362 stream='stdout')) + |
362 api.override_step_data('Read test result and report failures', | 363 api.override_step_data('Read test result and report failures', |
363 api.raw_io.output(result_xml_with_unexpected_failure_method))) | 364 api.raw_io.output(result_xml_with_unexpected_failure_method))) |
364 | 365 |
365 yield (api.test('webview_cts_invalid_output') + | 366 yield (api.test('webview_cts_invalid_output') + |
366 properties_for('webview_cts') + | 367 properties_for('webview_cts') + |
367 api.override_step_data('Run CTS', api.raw_io.stream_output( | 368 api.override_step_data('Run CTS', api.raw_io.stream_output( |
368 'Invalid CTS output here...', | 369 'Invalid CTS output here...', |
369 stream='stdout'))) | 370 stream='stdout'))) |
OLD | NEW |