t4209: use helper functions to test --author

Also add tests for case sensitive and non-matching cases. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Mar 22, 2014 at 18:15 UTC 31a8189ad1a0ab6e933cdafb560c513632028d59
1 file changed +4 -9
t/t4209-log-pickaxe.sh
+4 -9
@@ -60,15 +60,10 @@ test_log expect_nomatch --grep InItial
60 test_log_icase expect_initial --grep InItial
61 test_log_icase expect_nomatch --grep initail
62
63 -test_expect_success 'log --author --regexp-ignore-case' '
64 - git log --regexp-ignore-case --author=person --format=%H >actual &&
65 - test_cmp expect_second actual
66 -'
67 -
68 -test_expect_success 'log --author -i' '
69 - git log -i --author=person --format=%H >actual &&
70 - test_cmp expect_second actual
71 -'
63 +test_log expect_second --author Person
64 +test_log expect_nomatch --author person
65 +test_log_icase expect_second --author person
66 +test_log_icase expect_nomatch --author spreon
67
68 test_log expect_nomatch -G picked
69 test_log expect_second -G Picked