From 1f729dca9334ccadbe78768fc792178f4bb8b6e2 Mon Sep 17 00:00:00 2001 From: Clemens Buchacher Date: Mon, 1 Jun 2009 14:14:40 +0200 Subject: [PATCH] test-lib: fail if invalid options are passed Previously, unknown options would be ignored, including any subsequent valid options. Signed-off-by: Clemens Buchacher Signed-off-by: Junio C Hamano --- t/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index dad1437fa..6e83ceb36 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -115,7 +115,7 @@ do --tee) shift ;; # was handled already *) - break ;; + echo "error: unknown test option '$1'" >&2; exit 1 ;; esac done -- 2.30.2