t1500: test_rev_parse: facilitate future test enhancements
commit12f7526c66547ced1b670f5c0faeec5120fc9c7a
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 18 May 2016 20:15:42 +0000 (18 16:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 May 2016 21:14:04 +0000 (18 14:14 -0700)
treeb3f8c36a9610bba3884a7822e8706a67e719945d
parentd66f68ff985f494f3122ab05b532c6e41884ad64
t1500: test_rev_parse: facilitate future test enhancements

Tests run by test_rev_parse() are nearly identical; each invokes
git-rev-parse with a single option and compares the result against an
expected value. Such duplication makes it onerous to extend the tests
since any change needs to be repeated in each test. Avoid the
duplication by parameterizing the test and driving it via a for-loop.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1500-rev-parse.sh