From 0da3c59e7b1104b2d677d0ce3b2d181498e80826 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 23 Jun 2024 22:13:05 -0400 Subject: Show exit code if test fails --- tests/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') 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" -- cgit v1.2.3