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

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

Issue 2239023004: [Android] Surface --write-buildbot-json option of test_runner.py (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 4 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
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 'use_git_cache': False, 94 'use_git_cache': False,
95 }, 95 },
96 'json_results_file': { 96 'json_results_file': {
97 'json_results_file': 'json_results_file' 97 'json_results_file': 'json_results_file'
98 }, 98 },
99 'result_details': { 99 'result_details': {
100 'result_details': True, 100 'result_details': True,
101 }, 101 },
102 'enable_platform_mode': { 102 'enable_platform_mode': {
103 'perf_config': 'sharded_perf_tests.json', 103 'perf_config': 'sharded_perf_tests.json',
104 'enable_platform_mode': True 104 'enable_platform_mode': True,
105 'write_buildbot_json': True,
105 }, 106 },
106 'timestamp_as_point_id': { 107 'timestamp_as_point_id': {
107 'perf_config': 'sharded_perf_tests.json', 108 'perf_config': 'sharded_perf_tests.json',
108 'timestamp_as_point_id': True 109 'timestamp_as_point_id': True
109 }, 110 },
110 'telemetry_browser_tests_tester': { 111 'telemetry_browser_tests_tester': {
111 'run_telemetry_browser_tests': True, 112 'run_telemetry_browser_tests': True,
112 }, 113 },
113 }) 114 })
114 115
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 api.chromium_android.monkey_test() 192 api.chromium_android.monkey_test()
192 193
193 try: 194 try:
194 if config.get('perf_config'): 195 if config.get('perf_config'):
195 api.chromium_android.run_sharded_perf_tests( 196 api.chromium_android.run_sharded_perf_tests(
196 config='fake_config.json', 197 config='fake_config.json',
197 flaky_config='flake_fakes.json', 198 flaky_config='flake_fakes.json',
198 upload_archives_to_bucket='archives-bucket', 199 upload_archives_to_bucket='archives-bucket',
199 known_devices_file=config.get('last_known_devices', None), 200 known_devices_file=config.get('last_known_devices', None),
200 enable_platform_mode=config.get('enable_platform_mode', None), 201 enable_platform_mode=config.get('enable_platform_mode', None),
202 write_buildbot_json=config.get('write_buildbot_json', False),
201 timestamp_as_point_id=config.get('timestamp_as_point_id', False)) 203 timestamp_as_point_id=config.get('timestamp_as_point_id', False))
202 except api.step.StepFailure as f: 204 except api.step.StepFailure as f:
203 failure = f 205 failure = f
204 206
205 api.chromium_android.run_instrumentation_suite( 207 api.chromium_android.run_instrumentation_suite(
206 name='AndroidWebViewTest', 208 name='AndroidWebViewTest',
207 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'), 209 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'),
208 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), 210 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'),
209 isolate_file_path='android_webview/android_webview_test_data.isolate', 211 isolate_file_path='android_webview/android_webview_test_data.isolate',
210 flakiness_dashboard='test-results.appspot.com', 212 flakiness_dashboard='test-results.appspot.com',
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 properties_for('tester') + 435 properties_for('tester') +
434 api.override_step_data('get version (2)', 436 api.override_step_data('get version (2)',
435 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) 437 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n')))
436 438
437 yield (api.test('telemetry_browser_tests_failures') + 439 yield (api.test('telemetry_browser_tests_failures') +
438 properties_for('telemetry_browser_tests_tester') + 440 properties_for('telemetry_browser_tests_tester') +
439 api.override_step_data('Run telemetry browser_test PopularUrlsTest', 441 api.override_step_data('Run telemetry browser_test PopularUrlsTest',
440 api.json.output({'successes': ['passed_test1', 'passed_test2'], 442 api.json.output({'successes': ['passed_test1', 'passed_test2'],
441 'failures': ['failed_test_1', 'failed_test_2']}), 443 'failures': ['failed_test_1', 'failed_test_2']}),
442 retcode=1)) 444 retcode=1))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698