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: svn://svn.chromium.org/chrome/trunk/src@243292 0039d316-1c4b-4281-b951-d872f2087c98
parent d62217da
...@@ -302,9 +302,11 @@ def main(): ...@@ -302,9 +302,11 @@ def main():
# Only restart usb if devices are missing # Only restart usb if devices are missing
if set(expected_devices) != set(devices): if set(expected_devices) != set(devices):
KillAllAdb() KillAllAdb()
if RestartUsb():
return 1
retries = 5 retries = 5
if RestartUsb():
bb_annotations.PrintWarning()
print "USB reset stage failed, continuing anyway."
retries = 0
while retries: while retries:
time.sleep(1) time.sleep(1)
devices = android_commands.GetAttachedDevices() devices = android_commands.GetAttachedDevices()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment