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

Unified Diff: build/android/provision_devices.py

Issue 327573003: Reboot device after configuring in provision script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/provision_devices.py
diff --git a/build/android/provision_devices.py b/build/android/provision_devices.py
index 063cb736ab9abbd304b769475444834e63a5d2f7..9a3aadb1fc75f2fdade430efa3060e295d5a1967 100755
--- a/build/android/provision_devices.py
+++ b/build/android/provision_devices.py
@@ -146,6 +146,14 @@ def ProvisionDevices(options):
device_settings.ConfigureContentSettingsDict(
device, device_settings.NETWORK_DISABLED_SETTINGS)
device.old_interface.RunShellCommandWithSU('date -u %f' % time.time())
+ try:
jbudorick 2014/06/09 20:57:15 Can you add a TODO for me to parallelize this afte
navabi 2014/06/09 22:56:18 Done.
+ (device_utils.DeviceUtils.parallel(devices)
+ .old_interface.Reboot(True))
tonyg 2014/06/09 20:56:29 Nit: I think this and the above copy can fit on a
navabi 2014/06/09 22:56:18 Done.
+ except errors.DeviceUnresponsiveError:
+ pass
+ for device_serial in devices:
+ device = device_utils.DeviceUtils(device_serial)
+ device.WaitUntilFullyBooted(timeout=90)
(_, props) = device.old_interface.GetShellCommandStatusAndOutput('getprop')
for prop in props:
print prop
« 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