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

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

Issue 19981006: Android: fixes (again) bb_device_status_check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 ef9819d8efbe32c1aa57d5a9b37777ba63ebb616..452eea796c8083f9b45556031ea1cc3899519bc0 100755
--- a/build/android/buildbot/bb_device_status_check.py
+++ b/build/android/buildbot/bb_device_status_check.py
@@ -60,8 +60,9 @@ def DeviceInfo(serial, options):
battery_temp = float(re.findall('temperature: (\d+)', battery)[0]) / 10
sub_info = device_adb.GetSubscriberInfo()
imei_slice = ''
- if sub_info and len(sub_info):
- imei_slice = re.findall('Device ID = (\d+)', sub_info)[0][-6:]
+ device_id = re.findall('Device ID = (\d+)', sub_info)
+ if device_id and len(device_id):
+ imei_slice = device_id[0][-6:]
report = ['Device %s (%s)' % (serial, device_type),
' Build: %s (%s)' %
(device_build, device_adb.GetBuildFingerprint()),
« 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