Skip to content

Commit

Permalink
t/t{3600,3800,5401}: do not use egrep when grep would do
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jan 5, 2008
1 parent 90ed6c0 commit 0feb4d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t/t3600-rm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
'
Expand Down
2 changes: 1 addition & 1 deletion t/t3800-mktag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

###########################################################
Expand Down
2 changes: 1 addition & 1 deletion t/t5401-update-hooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'

Expand Down

0 comments on commit 0feb4d1

Please sign in to comment.