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

Unified Diff: devil/devil/android/tools/provision_devices.py

Issue 2808763004: [devil] Raise DeviceUnreachableError on device not found (Closed)
Patch Set: match specific device 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 | « devil/devil/android/tools/device_status.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/tools/provision_devices.py
diff --git a/devil/devil/android/tools/provision_devices.py b/devil/devil/android/tools/provision_devices.py
index 0f49878e3f722899761abad03b9be554f946059e..13f91651b747624fb1c3ee285ddb21d54648cd1c 100755
--- a/devil/devil/android/tools/provision_devices.py
+++ b/devil/devil/android/tools/provision_devices.py
@@ -170,7 +170,8 @@ def ProvisionDevice(device, steps, blacklist, reboot_timeout=None):
if blacklist:
blacklist.Extend([str(device)], reason='provision_timeout')
- except device_errors.CommandFailedError:
+ except (device_errors.CommandFailedError,
+ device_errors.DeviceUnreachableError):
logger.exception('Failed to provision device %s. Adding to blacklist.',
str(device))
if blacklist:
« no previous file with comments | « devil/devil/android/tools/device_status.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698