Skip to content

Commit 1f729dc

Browse files
Clemens Buchachergitster
authored andcommitted
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>
1 parent b3f298a commit 1f729dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ do
115115
--tee)
116116
shift ;; # was handled already
117117
*)
118-
break ;;
118+
echo "error: unknown test option '$1'" >&2; exit 1 ;;
119119
esac
120120
done
121121

0 commit comments

Comments
 (0)