From b77f4ad3caecc12255a067d039732be9464a57cb Mon Sep 17 00:00:00 2001 From: Thomas Arp <357770+welcor@users.noreply.github.com> Date: Wed, 22 Apr 2026 22:48:56 +0200 Subject: [PATCH] Propagate failure to calling shell Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- tests/Makefile.in | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/tests/Makefile.in b/tests/Makefile.in index 4cec776..c9daf3f 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -72,10 +72,32 @@ test: $(TESTS) @echo "==========================================" @echo "Running tbaMUD unit tests" @echo "==========================================" - @./test_utils && echo "[PASS] test_utils" || echo "[FAIL] test_utils" - @./test_random && echo "[PASS] test_random" || echo "[FAIL] test_random" - @./test_interpreter && echo "[PASS] test_interpreter" || echo "[FAIL] test_interpreter" - @./test_class && echo "[PASS] test_class" || echo "[FAIL] test_class" + @status=0; \ + if ./test_utils; then \ + echo "[PASS] test_utils"; \ + else \ + echo "[FAIL] test_utils"; \ + status=1; \ + fi; \ + if ./test_random; then \ + echo "[PASS] test_random"; \ + else \ + echo "[FAIL] test_random"; \ + status=1; \ + fi; \ + if ./test_interpreter; then \ + echo "[PASS] test_interpreter"; \ + else \ + echo "[FAIL] test_interpreter"; \ + status=1; \ + fi; \ + if ./test_class; then \ + echo "[PASS] test_class"; \ + else \ + echo "[FAIL] test_class"; \ + status=1; \ + fi; \ + exit $$status clean: rm -f $(TESTS)