aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-01-04 22:28:13 -0800
committerJunio C Hamano <gitster@pobox.com>2008-01-05 00:07:57 -0800
commit0feb4d1c99ef4188123ff38d702bcbdd483c3702 (patch)
tree51ab8331e425083c03a18304b3a80104f884e4b0 /t
parent90ed6c0576156d356aa35ee79aaf85825f9566f6 (diff)
downloadgit-0feb4d1c99ef4188123ff38d702bcbdd483c3702.tar.gz
git-0feb4d1c99ef4188123ff38d702bcbdd483c3702.tar.xz
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t3600-rm.sh2
-rwxr-xr-xt/t3800-mktag.sh2
-rwxr-xr-xt/t5401-update-hooks.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/t/t3600-rm.sh b/t/t3600-rm.sh
index 5c001aa48..b1ee622ef 100755
--- a/t/t3600-rm.sh
+++ b/t/t3600-rm.sh
@@ -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"
'
diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh
index 261f199a0..e5f3073f8 100755
--- a/t/t3800-mktag.sh
+++ b/t/t3800-mktag.sh
@@ -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'
}
###########################################################
diff --git a/t/t5401-update-hooks.sh b/t/t5401-update-hooks.sh
index c5dd30d0a..3eea3069e 100755
--- a/t/t5401-update-hooks.sh
+++ b/t/t5401-update-hooks.sh
@@ -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
'