Skip to content

Commit

Permalink
Fix counted-stress-test.sh to fail if a run failed
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Jul 12, 2023
1 parent 7b5c147 commit 4c368c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample-groovy/counted-stress-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ while [ $? -eq 0 ] && [ $runCount -lt $runLimit ]; do
# The command must be run last so $? evaluates the given command,
# instead of said, our successful run of the echo command.
done

if [ $runCount -ne $runLimit ]; then
exit 1
fi

0 comments on commit 4c368c7

Please sign in to comment.