[PATCH 05/10] t4209: use helper functions to test --author

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also add tests for case sensitive and non-matching cases.

Signed-off-by: Rene Scharfe <l.s.r@xxxxxx>
---
 t/t4209-log-pickaxe.sh | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/t/t4209-log-pickaxe.sh b/t/t4209-log-pickaxe.sh
index 873a10e..80aabe2 100755
--- a/t/t4209-log-pickaxe.sh
+++ b/t/t4209-log-pickaxe.sh
@@ -51,15 +51,10 @@ test_log	expect_nomatch	--grep InItial
 test_log_icase	expect_initial	--grep InItial
 test_log_icase	expect_nomatch	--grep initail
 
-test_expect_success 'log --author --regexp-ignore-case' '
-	git log --regexp-ignore-case --author=person --format=%H >actual &&
-	test_cmp expect_second actual
-'
-
-test_expect_success 'log --author -i' '
-	git log -i --author=person --format=%H >actual &&
-	test_cmp expect_second actual
-'
+test_log	expect_second	--author Person
+test_log	expect_nomatch	--author person
+test_log_icase	expect_second	--author person
+test_log_icase	expect_nomatch	--author spreon
 
 test_log	expect_nomatch	-G picked
 test_log	expect_second	-G Picked
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]