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

Unified Diff: build/android/device_status_check.py

Issue 14652029: Alert on zero online devices when last devices file is missing or empty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/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)
« 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