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

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

Issue 1314123005: [Android] Minor fixes for device_status_check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 7cd6cd044f26343b95b280af6e56a0a6fcca2561..3a54921a5a24536b1f80a17785fc35fdd4f460b4 100755
--- a/build/android/buildbot/bb_device_status_check.py
+++ b/build/android/buildbot/bb_device_status_check.py
@@ -243,7 +243,7 @@ def RecoverDevices(devices, blacklist):
for serial in should_restart_usb:
try:
reset_usb.reset_android_usb(serial)
- except device_errors.DeviceUnreachableError:
+ except (IOError, device_errors.DeviceUnreachableError):
logging.exception('Unable to reset USB for %s.', serial)
if blacklist:
blacklist.Extend([serial])
@@ -348,7 +348,7 @@ def main():
try:
if status['adb_status'] == 'device':
f.write('{serial} {adb_status} {build_product} {build_id} '
- '{temperature:.1f}C {level}%'.format(
+ '{temperature:.1f}C {level}%\n'.format(
serial=status['serial'],
adb_status=status['adb_status'],
build_product=status['type'],
« 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