From e57657a76e38579ae12683353d62aca660f49f55 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Sat, 21 Nov 2020 06:10:17 -0600 Subject: [PATCH] exit 1 if the test script itself fails --- script/run-integration-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/run-integration-tests.sh b/script/run-integration-tests.sh index 75e6bd6..37b6b0d 100755 --- a/script/run-integration-tests.sh +++ b/script/run-integration-tests.sh @@ -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