Android: makes bb_device_status_check more robust.
Some bots timeout on "dumpsys batteryinfo". This unecessarily prevent the bot from running and also stops printing the "Device Offline" bug link. Make it more robust. BUG=326526 TBR=navabi@chromium.org Review URL: https://codereview.chromium.org/109913003 git-svn-id: http://src.chromium.org/svn/trunk/src/build@240090 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
036e1752d1
Коммит
a334e704f5
|
@ -50,7 +50,11 @@ def DeviceInfo(serial, options):
|
|||
device_build_type = device_adb.GetBuildType()
|
||||
device_product_name = device_adb.GetProductName()
|
||||
|
||||
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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче