t4018,7810,7811: remove test_config() redefinition

test_config() is already a well-defined function in
test-lib-functions.sh.  Don't duplicate it unnecessarily.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ramkumar Ramachandra 2013-03-19 16:13:14 +05:30 committed by Junio C Hamano
parent 7e2010537e
commit 3f21fb99ab
3 changed files with 0 additions and 15 deletions

View File

@ -93,11 +93,6 @@ sed -e '
s/song;/song();/ s/song;/song();/
' <Beer.perl >Beer-correct.perl ' <Beer.perl >Beer-correct.perl
test_config () {
git config "$1" "$2" &&
test_when_finished "git config --unset $1"
}
test_expect_funcname () { test_expect_funcname () {
lang=${2-java} lang=${2-java}
test_expect_code 1 git diff --no-index -U1 \ test_expect_code 1 git diff --no-index -U1 \

View File

@ -861,11 +861,6 @@ test_expect_success LIBPCRE 'grep -G -F -E -P pattern' '
test_cmp expected actual test_cmp expected actual
' '
test_config() {
git config "$1" "$2" &&
test_when_finished "git config --unset $1"
}
cat >expected <<EOF cat >expected <<EOF
hello.c<RED>:<RESET>int main(int argc, const char **argv) hello.c<RED>:<RESET>int main(int argc, const char **argv)
hello.c<RED>-<RESET>{ hello.c<RED>-<RESET>{

View File

@ -125,11 +125,6 @@ test_expect_success 'modified file' '
test_cmp empty out test_cmp empty out
' '
test_config() {
git config "$1" "$2" &&
test_when_finished "git config --unset $1"
}
test_expect_success 'copes with color settings' ' test_expect_success 'copes with color settings' '
rm -f actual && rm -f actual &&
echo grep.h >expect && echo grep.h >expect &&