aboutsummaryrefslogtreecommitdiff
path: root/mk/run-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mk/run-test.sh')
-rwxr-xr-xmk/run-test.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/run-test.sh b/mk/run-test.sh
index 219c8577f..305396c11 100755
--- a/mk/run-test.sh
+++ b/mk/run-test.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-set -u
+set -eu -o pipefail
red=""
green=""
@@ -22,8 +22,7 @@ fi
run_test () {
(init_test 2>/dev/null > /dev/null)
- log="$(run_test_proper 2>&1)"
- status=$?
+ log="$(run_test_proper 2>&1)" && status=0 || status=$?
}
run_test