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

Side by Side Diff: trunk/src/build/android/buildbot/bb_device_steps.py

Issue 15042004: Revert 194601 "Android: Enable content_browsertests by default." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import collections 6 import collections
7 import glob 7 import glob
8 import json 8 import json
9 import multiprocessing 9 import multiprocessing
10 import optparse 10 import optparse
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if suite.is_suite_exe: 139 if suite.is_suite_exe:
140 cmd.append('--exe') 140 cmd.append('--exe')
141 RunCmd(cmd) 141 RunCmd(cmd)
142 142
143 def RunBrowserTestSuite(options): 143 def RunBrowserTestSuite(options):
144 """Manages an invocation of run_browser_tests.py. 144 """Manages an invocation of run_browser_tests.py.
145 145
146 Args: 146 Args:
147 options: options object. 147 options: options object.
148 """ 148 """
149 args = ['--verbose', '--num_retries=1'] 149 args = ['--verbose']
150 if options.target == 'Release': 150 if options.target == 'Release':
151 args.append('--release') 151 args.append('--release')
152 if options.asan: 152 if options.asan:
153 args.append('--tool=asan') 153 args.append('--tool=asan')
154 buildbot_report.PrintNamedStep(constants.BROWSERTEST_SUITE_NAME) 154 buildbot_report.PrintNamedStep(constants.BROWSERTEST_SUITE_NAME)
155 RunCmd(['build/android/run_browser_tests.py'] + args) 155 RunCmd(['build/android/run_browser_tests.py'] + args)
156 156
157 def RunChromeDriverTests(): 157 def RunChromeDriverTests():
158 """Run all the steps for running chromedriver tests.""" 158 """Run all the steps for running chromedriver tests."""
159 buildbot_report.PrintNamedStep('chromedriver_annotation') 159 buildbot_report.PrintNamedStep('chromedriver_annotation')
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 RunCmd(['build/android/provision_devices.py', '-t', target]) 277 RunCmd(['build/android/provision_devices.py', '-t', target])
278 278
279 if options.install: 279 if options.install:
280 test_obj = INSTRUMENTATION_TESTS[options.install] 280 test_obj = INSTRUMENTATION_TESTS[options.install]
281 InstallApk(options, test_obj, print_step=True) 281 InstallApk(options, test_obj, print_step=True)
282 282
283 if 'chromedriver' in options.test_filter: 283 if 'chromedriver' in options.test_filter:
284 RunChromeDriverTests() 284 RunChromeDriverTests()
285 if 'unit' in options.test_filter: 285 if 'unit' in options.test_filter:
286 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) 286 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES)
287 RunBrowserTestSuite(options)
288 if 'ui' in options.test_filter: 287 if 'ui' in options.test_filter:
289 for test in INSTRUMENTATION_TESTS.itervalues(): 288 for test in INSTRUMENTATION_TESTS.itervalues():
290 RunInstrumentationSuite(options, test) 289 RunInstrumentationSuite(options, test)
291 if 'webkit' in options.test_filter: 290 if 'webkit' in options.test_filter:
292 RunTestSuites(options, [ 291 RunTestSuites(options, [
293 gtest_config.Apk('webkit_unit_tests'), 292 gtest_config.Apk('webkit_unit_tests'),
294 ]) 293 ])
295 RunWebkitLint(options.target) 294 RunWebkitLint(options.target)
296 if 'webkit_layout' in options.test_filter: 295 if 'webkit_layout' in options.test_filter:
297 RunWebkitLayoutTests(options) 296 RunWebkitLayoutTests(options)
298 297
299 if options.experimental: 298 if options.experimental:
300 RunTestSuites(options, gtest_config.EXPERIMENTAL_TEST_SUITES) 299 RunTestSuites(options, gtest_config.EXPERIMENTAL_TEST_SUITES)
300 RunBrowserTestSuite(options)
301 301
302 # Print logcat, kill logcat monitor 302 # Print logcat, kill logcat monitor
303 buildbot_report.PrintNamedStep('logcat_dump') 303 buildbot_report.PrintNamedStep('logcat_dump')
304 RunCmd(['build/android/adb_logcat_printer.py', logcat_dir]) 304 RunCmd(['build/android/adb_logcat_printer.py', logcat_dir])
305 305
306 buildbot_report.PrintNamedStep('test_report') 306 buildbot_report.PrintNamedStep('test_report')
307 for report in glob.glob( 307 for report in glob.glob(
308 os.path.join(CHROME_SRC, 'out', options.target, 'test_logs', '*.log')): 308 os.path.join(CHROME_SRC, 'out', options.target, 'test_logs', '*.log')):
309 RunCmd(['cat', report]) 309 RunCmd(['cat', report])
310 os.remove(report) 310 os.remove(report)
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 'slave', 'android')) 367 'slave', 'android'))
368 if os.path.exists(build_internal_android): 368 if os.path.exists(build_internal_android):
369 android_paths.insert(0, build_internal_android) 369 android_paths.insert(0, build_internal_android)
370 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) 370 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']])
371 371
372 MainTestWrapper(options) 372 MainTestWrapper(options)
373 373
374 374
375 if __name__ == '__main__': 375 if __name__ == '__main__':
376 sys.exit(main(sys.argv)) 376 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698