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

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

Issue 109913003: Android: makes bb_device_status_check more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 67020d63273da5249fadd6aaaaf68929afe7bf17..2afb723849b8a4cda60e5c83f7266d44f1c51ab3 100755
--- a/build/android/buildbot/bb_device_status_check.py
+++ b/build/android/buildbot/bb_device_status_check.py
@@ -50,7 +50,11 @@ def DeviceInfo(serial, options):
device_build_type = device_adb.GetBuildType()
device_product_name = device_adb.GetProductName()
- battery = device_adb.GetBatteryInfo()
+ try:
+ battery = device_adb.GetBatteryInfo()
+ except Exception as e:
+ battery = None
+ logging.error('Unable to obtain battery info for %s, %s', serial, e)
def _GetData(re_expression, line, lambda_function=lambda x:x):
if not line:
« 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