]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/t{3600,3800,5401}: do not use egrep when grep would do
authorJunio C Hamano <gitster@pobox.com>
Sat, 5 Jan 2008 06:28:13 +0000 (22:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Jan 2008 08:07:57 +0000 (00:07 -0800)
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>
t/t3600-rm.sh
t/t3800-mktag.sh
t/t5401-update-hooks.sh

index 5c001aa4897a02098904f2c492b23690a9e1f6ab..b1ee622ef7887407c93bc55d95827f9eb7a2b951 100755 (executable)
@@ -127,7 +127,7 @@ test_expect_success '"rm" command printed' '
        git add test-file &&
        git commit -m "add file for rm test" &&
        git rm test-file > rm-output &&
-       test `egrep "^rm " rm-output | wc -l` = 1 &&
+       test `grep "^rm " rm-output | wc -l` = 1 &&
        rm -f test-file rm-output &&
        git commit -m "remove file from rm test"
 '
index 261f199a0cb32864bbb3cf103ddd2a63e62d2590..e5f3073f88059aa0b9921aeee9438efa38b4bf17 100755 (executable)
@@ -15,7 +15,7 @@ check_verify_failure () {
     test_expect_success \
         "$1" \
         'git-mktag <tag.sig 2>message ||
-         egrep -q -f expect.pat message'
+        grep -q -f expect.pat message'
 }
 
 ###########################################################
index c5dd30d0a43a708722cf4868a83c48290f9b9c9b..3eea3069ebcc20f98bb563af409bb1e15b6e9f54 100755 (executable)
@@ -129,7 +129,7 @@ STDOUT post-update
 STDERR post-update
 EOF
 test_expect_success 'send-pack stderr contains hook messages' '
-       egrep ^STD send.err >actual &&
+       grep ^STD send.err >actual &&
        git diff - actual <expect
 '