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 45903525b61d2d77b7e9bd84d7de16624736c38f..120d768ceac3531f3c0ba96f7ed91b859e1844aa 100644 |
--- a/build/android/pylib/local/device/local_device_environment.py |
+++ b/build/android/pylib/local/device/local_device_environment.py |
@@ -61,6 +61,7 @@ class LocalDeviceEnvironment(environment.Environment): |
logging.info('Using device cache: %s', cache_path) |
with open(cache_path) as f: |
d.LoadCacheData(f.read()) |
+ # Delete cached file so that any exceptions cause it to be cleared. |
os.unlink(cache_path) |
if self._logcat_output_dir: |
for d in self._devices: |