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

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

Issue 12382006: Check if mantarays are charging, and alert on all Android device errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style Created 7 years, 9 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 #!/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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 SpawnCmd(['build/android/adb_logcat_monitor.py', logcat_dir]) 232 SpawnCmd(['build/android/adb_logcat_monitor.py', logcat_dir])
233 233
234 # Wait for logcat_monitor to pull existing logcat 234 # Wait for logcat_monitor to pull existing logcat
235 RunCmd(['sleep', '5']) 235 RunCmd(['sleep', '5'])
236 236
237 if options.reboot: 237 if options.reboot:
238 RebootDevices() 238 RebootDevices()
239 239
240 # Device check and alert emails 240 # Device check and alert emails
241 buildbot_report.PrintNamedStep('device_status_check') 241 buildbot_report.PrintNamedStep('device_status_check')
242 RunCmd(['build/android/device_status_check.py'], flunk_on_failure=False) 242 RunCmd(['build/android/device_status_check.py'], flunk_on_failure=True)
Isaac (away) 2013/03/13 02:54:11 just remove this argument, it defaults to True
Siva Chandra 2013/03/13 20:58:15 Done.
243 243
244 if options.install: 244 if options.install:
245 test_obj = INSTRUMENTATION_TESTS[options.install] 245 test_obj = INSTRUMENTATION_TESTS[options.install]
246 InstallApk(options, test_obj, print_step=True) 246 InstallApk(options, test_obj, print_step=True)
247 247
248 if 'unit' in options.test_filter: 248 if 'unit' in options.test_filter:
249 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) 249 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES)
250 if 'ui' in options.test_filter: 250 if 'ui' in options.test_filter:
251 for test in INSTRUMENTATION_TESTS.itervalues(): 251 for test in INSTRUMENTATION_TESTS.itervalues():
252 RunInstrumentationSuite(options, test) 252 RunInstrumentationSuite(options, test)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 'slave', 'android')) 324 'slave', 'android'))
325 if os.path.exists(build_internal_android): 325 if os.path.exists(build_internal_android):
326 android_paths.insert(0, build_internal_android) 326 android_paths.insert(0, build_internal_android)
327 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) 327 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']])
328 328
329 MainTestWrapper(options) 329 MainTestWrapper(options)
330 330
331 331
332 if __name__ == '__main__': 332 if __name__ == '__main__':
333 sys.exit(main(sys.argv)) 333 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | build/android/device_status_check.py » ('j') | build/android/device_status_check.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698