Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: scripts/slave/recipe_modules/amp/example.py

Issue 1919193002: build: roll infra_paths changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: merge Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 DEPS = [ 2 DEPS = [
3 'amp', 3 'amp',
4 'depot_tools/infra_paths',
4 'recipe_engine/json', 5 'recipe_engine/json',
5 'recipe_engine/path', 6 'recipe_engine/path',
6 'recipe_engine/properties', 7 'recipe_engine/properties',
7 ] 8 ]
8 9
9 BUILDERS = { 10 BUILDERS = {
10 'normal_example': { 11 'normal_example': {
11 'device_name': ['SampleDevice'], 12 'device_name': ['SampleDevice'],
12 'device_os': ['SampleDeviceOS'], 13 'device_os': ['SampleDeviceOS'],
13 'api_address': '127.0.0.1', 14 'api_address': '127.0.0.1',
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 96
96 PROPERTIES = { 97 PROPERTIES = {
97 'buildername': Property(), 98 'buildername': Property(),
98 } 99 }
99 100
100 def RunSteps(api, buildername): 101 def RunSteps(api, buildername):
101 api.amp.setup() 102 api.amp.setup()
102 api.amp.set_config('main_pool') 103 api.amp.set_config('main_pool')
103 104
104 builder = BUILDERS[buildername] 105 builder = BUILDERS[buildername]
105 api.path['checkout'] = api.path['slave_build'].join('src') 106 api.path['checkout'] = api.infra_paths['slave_build'].join('src')
106 107
107 gtest_test_id = api.amp.trigger_test_suite( 108 gtest_test_id = api.amp.trigger_test_suite(
108 'example_gtest_suite', 'gtest', 109 'example_gtest_suite', 'gtest',
109 api.amp.gtest_arguments('example_gtest_suite'), 110 api.amp.gtest_arguments('example_gtest_suite'),
110 api.amp.amp_arguments( 111 api.amp.amp_arguments(
111 device_minimum_os=builder.get('device_minimum_os', None), 112 device_minimum_os=builder.get('device_minimum_os', None),
112 device_name=builder.get('device_name', None), 113 device_name=builder.get('device_name', None),
113 device_oem=builder.get('device_oem', None), 114 device_oem=builder.get('device_oem', None),
114 device_os=builder.get('device_os', None), 115 device_os=builder.get('device_os', None),
115 device_timeout=builder.get('device_timeout', None), 116 device_timeout=builder.get('device_timeout', None),
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 api.test('bad_device_data_for_collect') + 208 api.test('bad_device_data_for_collect') +
208 api.properties.generic(buildername='split_example') + 209 api.properties.generic(buildername='split_example') +
209 api.override_step_data('[collect] load example_gtest_suite', 210 api.override_step_data('[collect] load example_gtest_suite',
210 api.json.output({}))) 211 api.json.output({})))
211 212
212 yield ( 213 yield (
213 api.test('bad_test_id_data_for_upload') + 214 api.test('bad_test_id_data_for_upload') +
214 api.properties.generic(buildername='split_example') + 215 api.properties.generic(buildername='split_example') +
215 api.override_step_data('[upload logcat] load example_gtest_suite data', 216 api.override_step_data('[upload logcat] load example_gtest_suite data',
216 api.json.output({}))) 217 api.json.output({})))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698