Index: build/android/buildbot/bb_device_status_check.py |
diff --git a/build/android/buildbot/bb_device_status_check.py b/build/android/buildbot/bb_device_status_check.py |
index 7b656013f2870d605288d00e10074a2c50b7687e..f0579624a89ede372d94e8607f1b02dfe68f9446 100755 |
--- a/build/android/buildbot/bb_device_status_check.py |
+++ b/build/android/buildbot/bb_device_status_check.py |
@@ -293,6 +293,9 @@ def main(): |
if args: |
parser.error('Unknown options %s' % args) |
+ # Remove the last builds "bad devices" before checking device statuses. |
+ android_commands.ResetBadDevices() |
+ |
if options.restart_usb: |
expected_devices = GetLastDevices(os.path.abspath(options.out_dir)) |
devices = android_commands.GetAttachedDevices() |