From 9b5322f7bf725bac36e0cf2a3a47556280a3f06c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 30 Aug 2026 13:25:48 -0500 Subject: [PATCH] Improve error reporting. --- scripts/runtest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 90ce4696..ebaed21b 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -54,8 +54,9 @@ wrong_args() { if [ $# -ne 5 ] then - printf "%s\n" "Test $NAME has the wrong number of arguments ($# $*)" >&2 - exit + printf "%s\n" "Test '$1' has $# arguments" >&2 + for ((i=1;i<=$#;i++)); do echo "$i:'${@:$i:1}'" >&2; done + exit 1 fi } -- 2.39.5