From deec798db92d5a81311100e5456a9f65954b2bd5 Mon Sep 17 00:00:00 2001 From: "iancottrell@chromium.org" Date: Tue, 7 Jan 2014 14:27:49 +0000 Subject: [PATCH] Don't stop because we couldn't restart usb devices. One of the build bots was failing to restart one device, but it still had four other devices online it could continue with. BUG= Review URL: https://codereview.chromium.org/59753003 git-svn-id: http://src.chromium.org/svn/trunk/src/build@243292 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/buildbot/bb_device_status_check.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/android/buildbot/bb_device_status_check.py b/android/buildbot/bb_device_status_check.py index 2afb72384..cba813200 100755 --- a/android/buildbot/bb_device_status_check.py +++ b/android/buildbot/bb_device_status_check.py @@ -302,9 +302,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." + retries = 0 while retries: time.sleep(1) devices = android_commands.GetAttachedDevices()