summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2009-06-01 14:14:40 +0200
committerJunio C Hamano <gitster@pobox.com>2009-06-01 22:44:51 -0700
commit1f729dca9334ccadbe78768fc792178f4bb8b6e2 (patch)
treee2d06e865f768b4787f3e7a2964a40bb8ea11a3b
parentb3f298ab036530274b89a19594a6454bdcf1f760 (diff)
downloadgit-1f729dca9334ccadbe78768fc792178f4bb8b6e2.tar.gz
test-lib: fail if invalid options are passed
Previously, unknown options would be ignored, including any subsequent valid options. Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index dad1437fa4..6e83ceb360 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