Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2009-06-01 16:14:40 +0400
committerJunio C Hamano <gitster@pobox.com>2009-06-02 09:44:51 +0400
commit1f729dca9334ccadbe78768fc792178f4bb8b6e2 (patch)
treee2d06e865f768b4787f3e7a2964a40bb8ea11a3b /t/test-lib.sh
parentb3f298ab036530274b89a19594a6454bdcf1f760 (diff)
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>
Diffstat (limited to 't/test-lib.sh')
-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