From: Clemens Buchacher Date: Mon, 1 Jun 2009 12:14:40 +0000 (+0200) Subject: test-lib: fail if invalid options are passed X-Git-Tag: v1.6.4-rc0~92 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f729dca9334ccadbe78768fc792178f4bb8b6e2;p=git.git 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 --- 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