Skip to content

Commit

Permalink
exit 1 if the test script itself fails
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Nov 21, 2020
1 parent 0bd4b3c commit e57657a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/run-integration-tests.sh
Expand Up @@ -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
Expand Down

0 comments on commit e57657a

Please sign in to comment.