Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2309)

Unified Diff: build/android/buildbot/bb_device_status_check.py

Issue 59753003: Don't stop because we couldn't restart usb devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698