STT: Stop the test run if any builds fail

The script must fail and be excluded from the build stats if any
build run fails.

Bug: 284915566
Test: run_command with fault command
Change-Id: I0bc8d14286ebce52036f45ba4dee675f333a3ff0
This commit is contained in:
Justin Yun
2023-06-28 21:53:34 +09:00
parent 69f0ed6b5a
commit dde502b9de

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
#
# Copyright (C) 2023 The Android Open Source Project
#
@@ -84,10 +84,9 @@ if [[ -n "${dist_dir}" ]]; then
fi
run_command() {
echo "Running: ${1}"
if [[ -z "${dry_run}" ]]; then
$1
else
echo "$1"
fi
}