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

Unified Diff: build/android/provision_devices.py

Issue 2811993002: [devil refactor] Prepare clients for DeviceUnreachableError (Closed)
Patch Set: Created 3 years, 8 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/local/device/local_device_gtest_run.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 1e8ed92b305bd8f50db74320bd42fa590f6c2d4e..ecf22c9a563a1356e993840e2ede8be3b3b40e94 100755
--- a/build/android/provision_devices.py
+++ b/build/android/provision_devices.py
@@ -137,7 +137,8 @@ def ProvisionDevice(device, blacklist, options):
if blacklist:
blacklist.Extend([str(device)], reason='provision_timeout')
- except device_errors.CommandFailedError:
+ except (device_errors.CommandFailedError,
+ device_errors.DeviceUnreachableError):
logging.exception('Failed to provision device %s. Adding to blacklist.',
str(device))
if blacklist:
« no previous file with comments | « build/android/adb_install_apk.py ('k') | build/android/pylib/local/device/local_device_gtest_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698