From 105f50dca086942722e53894aa47130ec1b6e941 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 9 Nov 2021 11:39:04 -0500 Subject: [PATCH] Fix test_suites.sh to fail if the chip-tool command fails. If chip-tool crashed, the script was not treating this as a failure, because the default exit code of a pipeline is that of the last command in the pipeline and we are piping through tee. --- scripts/tests/test_suites.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/tests/test_suites.sh b/scripts/tests/test_suites.sh index 7f53ad9bf1ffc5..d73f8f4805fbf8 100755 --- a/scripts/tests/test_suites.sh +++ b/scripts/tests/test_suites.sh @@ -17,6 +17,8 @@ # set -e +set -o pipefail # Fail if anything in a pipeline fails, not just the last + # command which for us tends to be 'tee'. declare -i iterations=2 declare -i delay=0