diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-06-23 22:13:05 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-06-23 22:13:05 -0400 |
commit | 0da3c59e7b1104b2d677d0ce3b2d181498e80826 (patch) | |
tree | 04356ca03fe41528d0b46cd196fe6f098d687426 /tests | |
parent | 588b163cfabd510a62b050ed0b13044262572f3b (diff) |
Show exit code if test fails
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run.sh | 5 |
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" |