]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib-functions.sh
test: validate prerequistes syntax
authorJunio C Hamano <gitster@pobox.com>
Sun, 26 Apr 2015 22:18:45 +0000 (15:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2015 22:20:33 +0000 (15:20 -0700)
commitd93d5d51e3d104f4466f2081dd45b9670dc28744
treec6fec7bfd6421a18ad4eff04ff23d015e782ca20
parent8c2ea51254b41810edf4ee1ac8b2272a784b15df
test: validate prerequistes syntax

Brian Carson noticed that a test piece in t5601 had a pair of single
quotes in the body, which made it into 4 parameter call to
test_expect_success, as if its test title were a prerequisite.

As the prerequisites have a specific syntax (i.e. comma separated
tokens spelled in capital letters, possibly prefixed with ! for
negation), validate them to catch such a mistake in the future.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh