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

Side by Side Diff: build/android/buildbot/bb_device_status_check.py

Issue 324513006: Return 1 ony if no online device presents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | 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 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 'unimportant') 334 'unimportant')
335 for serial, battery in zip(devices, batteries): 335 for serial, battery in zip(devices, batteries):
336 perf_tests_results_helper.PrintPerfResult('DeviceBattery', serial, 336 perf_tests_results_helper.PrintPerfResult('DeviceBattery', serial,
337 [battery], '%', 337 [battery], '%',
338 'unimportant') 338 'unimportant')
339 339
340 if False in fail_step_lst: 340 if False in fail_step_lst:
341 # TODO(navabi): Build fails on device status check step if there exists any 341 # TODO(navabi): Build fails on device status check step if there exists any
342 # devices with critically low battery. Remove those devices from testing, 342 # devices with critically low battery. Remove those devices from testing,
343 # allowing build to continue with good devices. 343 # allowing build to continue with good devices.
344 return 1 344 return 2
345 345
346 if not devices: 346 if not devices:
347 return 1 347 return 1
348 348
349 349
350 if __name__ == '__main__': 350 if __name__ == '__main__':
351 sys.exit(main()) 351 sys.exit(main())
OLDNEW
« 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