[Android] Add known devices flag for host_info.
Rational: If a device is expected but missing, host info should count that
as an infra failure.
BUG=
Review-Url: https://codereview.chromium.org/2214883002
Cr-Commit-Position: refs/heads/master@{#410372}
diff --git a/testing/scripts/host_info.py b/testing/scripts/host_info.py
index 37fa54b..f23352d 100755
--- a/testing/scripts/host_info.py
+++ b/testing/scripts/host_info.py
@@ -57,7 +57,7 @@
return {}
with common.temporary_file() as tempfile_path:
- rc = common.run_command([
+ test_cmd = [
sys.executable,
os.path.join(args.paths['checkout'],
'third_party',
@@ -69,8 +69,12 @@
'device_status.py'),
'--json-output', tempfile_path,
'--blacklist-file', os.path.join(
- args.paths['checkout'], 'out', 'bad_devices.json')])
+ args.paths['checkout'], 'out', 'bad_devices.json')
+ ]
+ if args.args:
+ test_cmd.extend(args.args)
+ rc = common.run_command(test_cmd)
if rc:
failures.append('device_status')
return {}