Commit d854e64a authored by bpastene's avatar bpastene Committed by Commit bot

Make device_status_check complain if there are no available devices.

BUG=

Review-Url: https://codereview.chromium.org/2104413002
Cr-Commit-Position: refs/heads/master@{#403309}
parent 347f2466
......@@ -409,6 +409,8 @@ def main():
and not _IsBlacklisted(status['serial'], blacklist))]
# If all devices failed, or if there are no devices, it's an infra error.
if not live_devices:
logging.error('No available devices.')
return 0 if live_devices else exit_codes.INFRA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment