exit 1 if the test script itself fails

main
Brian Hicks 2020-11-21 06:10:17 -06:00
parent 0bd4b3cb36
commit e57657a76e
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ run_test() {
echo "===== $NAME"
env ELM_FORBID_IMPORT_CONFIG="tmp/forbidden-imports.toml" bash -xeou pipefail "$TEST_FILE" > "$CURRENT"
if test "$?" != "0"; then
return 1
fi
mv tmp/forbidden-imports.toml "$CURRENT_CONFIG"
if ! test -e "$GOLDEN"; then