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

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

Issue 2587493002: devil: Make provision_devices.py complain when no devices are available. (Closed)
Patch Set: comments Created 4 years 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/provision_devices.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/script_common.py
diff --git a/devil/devil/android/tools/script_common.py b/devil/devil/android/tools/script_common.py
index 8e462c354469ae50e18f8cb8dac8ddc8f4350d3d..f91ad5eea0b41386f3fb64d11169092af216fed1 100644
--- a/devil/devil/android/tools/script_common.py
+++ b/devil/devil/android/tools/script_common.py
@@ -9,11 +9,11 @@ from devil.android import device_utils
def GetDevices(requested_devices, blacklist_file):
if not isinstance(blacklist_file, device_blacklist.Blacklist):
- blacklist = (device_blacklist.Blacklist(blacklist_file)
- if blacklist_file
- else None)
+ blacklist_file = (device_blacklist.Blacklist(blacklist_file)
+ if blacklist_file
+ else None)
- devices = device_utils.DeviceUtils.HealthyDevices(blacklist)
+ devices = device_utils.DeviceUtils.HealthyDevices(blacklist_file)
if not devices:
raise device_errors.NoDevicesError()
elif requested_devices:
« no previous file with comments | « devil/devil/android/tools/provision_devices.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698