diff --git a/test.bats b/test.bats index e415f04..fd779e3 100644 --- a/test.bats +++ b/test.bats @@ -5,8 +5,10 @@ run_cmd(){ echo "$@" + set +e ${@} EXIT_CODE=$? + set -e if [ $EXIT_CODE -eq 2 ]; then echo "Exit code 2 encountered, regression detected, treating as success"