summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-06-23 22:13:05 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-06-23 22:13:05 -0400
commit0da3c59e7b1104b2d677d0ce3b2d181498e80826 (patch)
tree04356ca03fe41528d0b46cd196fe6f098d687426
parent588b163cfabd510a62b050ed0b13044262572f3b (diff)
Show exit code if test fails
-rwxr-xr-xtests/run.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 5c33f73..4cc5f82 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -4,8 +4,9 @@ FAILURE=0
for i in out/*.out; do
./$i
- if [[ $? -ne 69 ]]; then
- echo "[FAILED] $i"
+ EXC=$?
+ if [[ $EXC -ne 69 ]]; then
+ echo "[FAILED] (Code $EXC) $i"
FAILURE=1
else
echo "[ OK ] $i"