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 4fdfbdff9b8e4cb8649db6406b74cfa7bfd600f7..7d9651e4366c22d4b17ca84a54e45eb3e9a59269 100644 |
--- a/build/android/pylib/local/device/local_device_environment.py |
+++ b/build/android/pylib/local/device/local_device_environment.py |
@@ -96,7 +96,7 @@ class LocalDeviceEnvironment(environment.Environment): |
f.write(d.DumpCacheData()) |
logging.info('Wrote device cache: %s', cache_path) |
- def BlacklistDevice(self, device): |
+ def BlacklistDevice(self, device, reason='local_device_failure'): |
if not self._blacklist: |
logging.warning( |
'Attempted to blacklist %s, but no blacklist was provided.', |
@@ -104,7 +104,7 @@ class LocalDeviceEnvironment(environment.Environment): |
return |
device_serial = device.adb.GetDeviceSerial() |
- self._blacklist.Extend([device_serial]) |
+ self._blacklist.Extend([device_serial], reason=reason) |
with self._devices_lock: |
self._devices = [d for d in self._devices if str(d) != device_serial] |