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

Unified Diff: build/android/buildbot/bb_device_steps.py

Issue 12733012: Provision Android devices after the 'device_status_check' step. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address ilevy's comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('j') | build/android/provision_devices.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/bb_device_steps.py
diff --git a/build/android/buildbot/bb_device_steps.py b/build/android/buildbot/bb_device_steps.py
index 0f2afc6f6628f6134da5f548d8e93fd9442f04b7..5418801b57ab830e48bc41b5c1d13c2d7f1d8080 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -271,6 +271,13 @@ def MainTestWrapper(options):
buildbot_report.PrintNamedStep('device_status_check')
RunCmd(['build/android/device_status_check.py'])
+ # Provision devices
+ if options.auto_reconnect:
+ buildbot_report.PrintNamedStep('provision_devices')
+ target = options.factory_properties.get('target', 'Debug')
+ adb_reboot = CHROME_SRC + ('/out/%s/adb_reboot' % target)
+ RunCmd(['build/android/provision_devices.py', '-a', adb_reboot])
+
if options.install:
test_obj = INSTRUMENTATION_TESTS[options.install]
InstallApk(options, test_obj, print_step=True)
@@ -334,6 +341,8 @@ def main(argv):
help='Reboot devices before running tests')
parser.add_option('--upload-to-flakiness-server', action='store_true',
help='Upload the results to the flakiness dashboard.')
+ parser.add_option('--auto-reconnect', action='store_true',
+ help='Push auto reconnect script on to the device.')
Isaac (away) 2013/03/29 00:18:33 'Push script to device which restarts adbd on disc
Siva Chandra 2013/03/29 01:47:06 Done.
options, args = parser.parse_args(argv[1:])
def ParserError(msg):
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('j') | build/android/provision_devices.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698