Skip to content

Commit

Permalink
Fix test_suites.sh to fail if the chip-tool command fails.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bzbarsky-apple committed Nov 9, 2021
1 parent 613f27f commit 105f50d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/tests/test_suites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 105f50d

Please sign in to comment.