@matheusbsbs / matheus-bagliano / commits / 0feb4d1c99
Fork 0

t/t{3600,3800,5401}: do not use egrep when grep would do

There is nothing _wrong_ with egrep per se, but this way we would have less dependency on external tools. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 4, 2008 at 22:28 UTC 0feb4d1c99ef4188123ff38d702bcbdd483c3702
3 files changed +3 -3
t/t3600-rm.sh
+1 -1
@@ -127,7 +127,7 @@ test_expect_success '"rm" command printed' '
127 git add test-file &&
128 git commit -m "add file for rm test" &&
129 git rm test-file > rm-output &&
130 - test `egrep "^rm " rm-output | wc -l` = 1 &&
130 + test `grep "^rm " rm-output | wc -l` = 1 &&
131 rm -f test-file rm-output &&
132 git commit -m "remove file from rm test"
133 '
t/t3800-mktag.sh
+1 -1
@@ -15,7 +15,7 @@ check_verify_failure () {
15 test_expect_success \
16 "$1" \
17 'git-mktag <tag.sig 2>message ||
18 - egrep -q -f expect.pat message'
18 + grep -q -f expect.pat message'
19 }
20
21 ###########################################################
t/t5401-update-hooks.sh
+1 -1
@@ -129,7 +129,7 @@ STDOUT post-update
129 STDERR post-update
130 EOF
131 test_expect_success 'send-pack stderr contains hook messages' '
132 - egrep ^STD send.err >actual &&
132 + grep ^STD send.err >actual &&
133 git diff - actual <expect
134 '
135