Index: build/android/pylib/local/device/local_device_environment.py |
diff --git a/build/android/pylib/local/device/local_device_environment.py b/build/android/pylib/local/device/local_device_environment.py |
index 7a20903998b977d5aba1b30c2acfbd7ab71bf5ca..f146f7a162a663671f695aa9065df3487e0825e3 100644 |
--- a/build/android/pylib/local/device/local_device_environment.py |
+++ b/build/android/pylib/local/device/local_device_environment.py |
@@ -14,8 +14,9 @@ class LocalDeviceEnvironment(environment.Environment): |
def __init__(self, args, _error_func): |
super(LocalDeviceEnvironment, self).__init__() |
- self._blacklist = device_blacklist.Blacklist( |
- args.blacklist_file or device_blacklist.BLACKLIST_JSON) |
+ self._blacklist = (device_blacklist.Blacklist(args.blacklist_file) |
+ if args.blacklist_file |
+ else None) |
self._device_serial = args.test_device |
self._devices = [] |
self._max_tries = 1 + args.num_retries |