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

Unified Diff: build/android/provision_devices.py

Issue 290573004: [Android] Support generic parallel execution across devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the parallelizer tests Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/adb_install_apk.py ('k') | build/android/pylib/device/device_utils.py » ('j') | 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 0549e81adbd17ad9c818e434919f9e4ba62564b9..834c6313e7430c834a38468c8cbefa5732a71f03 100755
--- a/build/android/provision_devices.py
+++ b/build/android/provision_devices.py
@@ -24,6 +24,10 @@ from pylib import device_settings
from pylib.cmd_helper import GetCmdOutput
from pylib.device import device_utils
+sys.path.append(os.path.join(constants.DIR_SOURCE_ROOT,
+ 'third_party', 'android_testrunner'))
+import errors
+
def KillHostHeartbeat():
ps = subprocess.Popen(['ps', 'aux'], stdout = subprocess.PIPE)
stdout, _ = ps.communicate()
@@ -172,7 +176,11 @@ def main(argv):
for device_serial in devices:
device = device_utils.DeviceUtils(device_serial)
WipeDeviceData(device)
- device_utils.RebootDevices()
+ try:
+ (device_utils.DeviceUtils.parallel(devices)
+ .old_interface.Reboot(True).pFinish(None))
+ except errors.DeviceUnresponsiveError:
+ pass
else:
ProvisionDevices(options)
« no previous file with comments | « build/android/adb_install_apk.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698