Index: build/android/device_status_check.py |
diff --git a/build/android/device_status_check.py b/build/android/device_status_check.py |
index 642e4eeb2a841aec9f503ac35b4aa1abea15caa1..efe4db2ca1ab8fcb8e5dbb8d31e921faf19f2eb0 100755 |
--- a/build/android/device_status_check.py |
+++ b/build/android/device_status_check.py |
@@ -110,6 +110,10 @@ def CheckForMissingDevices(options, adb_online_devs): |
WriteDeviceList('.last_devices', (adb_online_devs + last_devices)) |
Isaac (away)
2013/05/07 07:57:50
make a variable:
all_known_devices = adb_online_d
|
WriteDeviceList('.last_missing', missing_devs) |
+ if not adb_online_devs and not last_devices: |
Isaac (away)
2013/05/07 01:57:08
Not sure this is needed. Can you move the devices
Siva Chandra
2013/05/07 06:42:55
Wouldn't it be useful to report last devices (if .
Isaac (away)
2013/05/07 07:20:13
But this bypasses all the other logic. Why not in
Siva Chandra
2013/05/07 07:43:10
The 'if' at line 117 is executed if there were mis
Isaac (away)
2013/05/07 07:57:50
Good point.
|
+ # This can happen if for some reason the .last_devices file is not |
+ # present or if it was empty. |
+ return ['No online devices. Have any devices been plugged in?'] |
if missing_devs: |
devices_missing_msg = '%d devices not detected.' % len(missing_devs) |
buildbot_report.PrintSummaryText(devices_missing_msg) |