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

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

Issue 1694383003: build: Bot_update refactor recipe roll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Disable for cronet and swarming Created 4 years, 10 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 # 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',
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 BUILD_CONFIG='Release') 102 BUILD_CONFIG='Release')
103 103
104 api.chromium_android.c.get_app_manifest_vars = True 104 api.chromium_android.c.get_app_manifest_vars = True
105 api.chromium_android.c.coverage = config.get('coverage', False) 105 api.chromium_android.c.coverage = config.get('coverage', False)
106 api.chromium_android.c.asan_symbolize = True 106 api.chromium_android.c.asan_symbolize = True
107 107
108 if config.get('adb_vendor_keys'): 108 if config.get('adb_vendor_keys'):
109 api.chromium.c.env.ADB_VENDOR_KEYS = api.path['build'].join( 109 api.chromium.c.env.ADB_VENDOR_KEYS = api.path['build'].join(
110 'site_config', '.adb_key') 110 'site_config', '.adb_key')
111 111
112 api.chromium_android.init_and_sync() 112 api.chromium_android.init_and_sync(use_bot_update=False)
113 113
114 api.chromium.runhooks() 114 api.chromium.runhooks()
115 api.chromium_android.run_tree_truth(additional_repos=['foo']) 115 api.chromium_android.run_tree_truth(additional_repos=['foo'])
116 assert 'MAJOR' in api.chromium.get_version() 116 assert 'MAJOR' in api.chromium.get_version()
117 117
118 if config.get('build', False): 118 if config.get('build', False):
119 api.chromium.compile() 119 api.chromium.compile()
120 api.chromium_android.make_zip_archive('zip_build_proudct', 'archive.zip', 120 api.chromium_android.make_zip_archive('zip_build_proudct', 'archive.zip',
121 filters=['*.apk']) 121 filters=['*.apk'])
122 else: 122 else:
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 <Test name='testUserAgentString_default'> 311 <Test name='testUserAgentString_default'>
312 <FailedScene> </FailedScene> 312 <FailedScene> </FailedScene>
313 </Test> 313 </Test>
314 </TestCase> 314 </TestCase>
315 </TestSuite> 315 </TestSuite>
316 </TestSuite> 316 </TestSuite>
317 </TestSuite> 317 </TestSuite>
318 </TestPackage> 318 </TestPackage>
319 </TestResult> """ 319 </TestResult> """
320 yield (api.test('webview_cts_unexpected_class_failure') + 320 yield (api.test('webview_cts_unexpected_class_failure') +
321 properties_for('webview_cts') + 321 properties_for('webview_cts') +
322 api.override_step_data('Run CTS', api.raw_io.stream_output( 322 api.override_step_data('Run CTS', api.raw_io.stream_output(
323 'Created xml report file at file:///path/to/testResult.xml', 323 'Created xml report file at file:///path/to/testResult.xml',
324 stream='stdout')) + 324 stream='stdout')) +
325 api.override_step_data('Read test result and report failures', 325 api.override_step_data('Read test result and report failures',
326 api.raw_io.output(result_xml_with_unexpected_failure_class))) 326 api.raw_io.output(result_xml_with_unexpected_failure_class)))
327 327
328 result_xml_with_unexpected_failure_method = """<TestResult> 328 result_xml_with_unexpected_failure_method = """<TestResult>
329 <TestPackage> 329 <TestPackage>
330 <TestSuite name='android'> 330 <TestSuite name='android'>
331 <TestSuite name='webkit'> 331 <TestSuite name='webkit'>
(...skipping 13 matching lines...) Expand all
345 api.override_step_data('Run CTS', api.raw_io.stream_output( 345 api.override_step_data('Run CTS', api.raw_io.stream_output(
346 'Created xml report file at file:///path/to/testResult.xml', 346 'Created xml report file at file:///path/to/testResult.xml',
347 stream='stdout')) + 347 stream='stdout')) +
348 api.override_step_data('Read test result and report failures', 348 api.override_step_data('Read test result and report failures',
349 api.raw_io.output(result_xml_with_unexpected_failure_method))) 349 api.raw_io.output(result_xml_with_unexpected_failure_method)))
350 350
351 yield (api.test('webview_cts_invalid_output') + 351 yield (api.test('webview_cts_invalid_output') +
352 properties_for('webview_cts') + 352 properties_for('webview_cts') +
353 api.override_step_data('Run CTS', api.raw_io.stream_output( 353 api.override_step_data('Run CTS', api.raw_io.stream_output(
354 'Invalid CTS output here...', 354 'Invalid CTS output here...',
355 stream='stdout'))) 355 stream='stdout')))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698