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 a021bfc892b1136e13951f486db1d70ac02802ad..18598af438802fd95c0aa94988583feeb664ceba 100755 |
--- a/build/android/buildbot/bb_device_status_check.py |
+++ b/build/android/buildbot/bb_device_status_check.py |
@@ -292,9 +292,11 @@ def main(): |
# Only restart usb if devices are missing |
if set(expected_devices) != set(devices): |
KillAllAdb() |
- if RestartUsb(): |
- return 1 |
retries = 5 |
+ if RestartUsb(): |
+ bb_annotations.PrintWarning() |
+ print "USB reset stage failed, continuing anyway." |
bulach
2013/11/05 18:21:09
nit: I think the PrintWarning() needs to come afte
|
+ retries = 0 |
while retries: |
time.sleep(1) |
devices = android_commands.GetAttachedDevices() |