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

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: Include time.h 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') | no next file with comments »
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..a0d0d195e546d22a3420a660639f941c2b4ce91c 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -271,6 +271,12 @@ 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')
+ RunCmd(['build/android/provision_devices.py', '-t', target])
+
if options.install:
test_obj = INSTRUMENTATION_TESTS[options.install]
InstallApk(options, test_obj, print_step=True)
@@ -334,6 +340,9 @@ 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 script to device which restarts adbd on disconnections.')
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698