Chromium Code Reviews| 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 6d736a146baa7a26e398b7f81ec526785a4deff5..817e5d9add79fd07370a8280c699f84be6dbd008 100755 |
| --- a/build/android/buildbot/bb_device_status_check.py |
| +++ b/build/android/buildbot/bb_device_status_check.py |
| @@ -377,10 +377,15 @@ def main(): |
| 'unique_builds': unique_builds, |
| })) |
| - if False in fail_step_lst: |
| - # TODO(navabi): Build fails on device status check step if there exists any |
| - # devices with critically low battery. Remove those devices from testing, |
| - # allowing build to continue with good devices. |
| + index = 0 |
| + num_failed_devs = 0 |
| + for fail_status in fail_step_lst: |
| + if not fail_status: |
| + device_blacklist.ExtendBlacklist([str(devices[index])]) |
|
jbudorick
2014/10/23 01:19:32
We may want to do something like what provision_de
navabi
2014/10/23 01:27:27
I'm actually not sure I like what provision_device
jbudorick
2014/10/23 14:05:27
I don't like it, but I can understand why the perf
|
| + num_failed_devs = num_failed_devs + 1 |
|
jbudorick
2014/10/23 01:19:31
nit: num_failed_devs += 1
navabi
2014/10/23 01:27:27
Done.
|
| + index = index + 1 |
|
jbudorick
2014/10/23 01:19:32
nit: index += 1
navabi
2014/10/23 01:27:27
Done.
|
| + |
| + if num_failed_devs == len(devices): |
| return 2 |
| if not devices: |