| 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 a6778b195aab97e3d6dfb323b3b8277fb0949fca..4b660667126178e08c1e24d3fc11c22fbad09f93 100755
|
| --- a/build/android/buildbot/bb_device_status_check.py
|
| +++ b/build/android/buildbot/bb_device_status_check.py
|
| @@ -140,14 +140,17 @@ def CheckForMissingDevices(options, adb_online_devs):
|
| missing_devs = list(set(last_devices) - set(adb_online_devs))
|
| new_missing_devs = list(set(missing_devs) - set(last_missing_devices))
|
|
|
| - if new_missing_devs:
|
| + if new_missing_devs and os.environ.get('BUILDBOT_SLAVENAME'):
|
| logging.info('new_missing_devs %s' % new_missing_devs)
|
| devices_missing_msg = '%d devices not detected.' % len(missing_devs)
|
| bb_annotations.PrintSummaryText(devices_missing_msg)
|
|
|
| from_address = 'chrome-bot@chromium.org'
|
| to_addresses = ['zty@chromium.org']
|
| - subject = 'Devices offline on %s' % os.environ.get('BUILDBOT_SLAVENAME')
|
| + subject = 'Devices offline on %s, %s, %s' % (
|
| + os.environ.get('BUILDBOT_SLAVENAME'),
|
| + os.environ.get('BUILDBOT_BUILDERNAME'),
|
| + os.environ.get('BUILDBOT_BUILDNUMBER'))
|
| msg = ('Please reboot the following devices:\n%s' %
|
| '\n'.join(map(str,new_missing_devs)))
|
| SendEmail(from_address, to_addresses, subject, msg)
|
|
|