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

Side by Side Diff: build/android/device_status_check.py

Issue 12886036: Flunk the build if no Android devices are online. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """A class to keep track of devices across builds and report state.""" 7 """A class to keep track of devices across builds and report state."""
8 import logging 8 import logging
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 for serial, dev_errors in zip(devices, errors): 176 for serial, dev_errors in zip(devices, errors):
177 if dev_errors: 177 if dev_errors:
178 err_msg += ['%s errors:' % serial] 178 err_msg += ['%s errors:' % serial]
179 err_msg += [' %s' % error for error in dev_errors] 179 err_msg += [' %s' % error for error in dev_errors]
180 180
181 if err_msg: 181 if err_msg:
182 buildbot_report.PrintWarning() 182 buildbot_report.PrintWarning()
183 msg = '\n'.join(err_msg) 183 msg = '\n'.join(err_msg)
184 print msg 184 print msg
185 SendDeviceStatusAlert(msg) 185 SendDeviceStatusAlert(msg)
186
187 if not devices:
186 return 1 188 return 1
187 189
188 190
189 if __name__ == '__main__': 191 if __name__ == '__main__':
190 sys.exit(main()) 192 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698