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>

Ramkumar Ramachandra committed Mar 19, 2013 at 16:13 UTC 3f21fb99ab5335146617f21b885dc41afc7943d6
3 files changed -15
t/t4018-diff-funcname.sh
-5
@@ -93,11 +93,6 @@ sed -e '
93 s/song;/song();/
94 ' <Beer.perl >Beer-correct.perl
95
96 -test_config () {
97 - git config "$1" "$2" &&
98 - test_when_finished "git config --unset $1"
99 -}
100 -
96 test_expect_funcname () {
97 lang=${2-java}
98 test_expect_code 1 git diff --no-index -U1 \
t/t7810-grep.sh
-5
@@ -861,11 +861,6 @@ test_expect_success LIBPCRE 'grep -G -F -E -P pattern' '
861 test_cmp expected actual
862 '
863
864 -test_config() {
865 - git config "$1" "$2" &&
866 - test_when_finished "git config --unset $1"
867 -}
868 -
864 cat >expected <<EOF
865 hello.c<RED>:<RESET>int main(int argc, const char **argv)
866 hello.c<RED>-<RESET>{
t/t7811-grep-open.sh
-5
@@ -125,11 +125,6 @@ test_expect_success 'modified file' '
125 test_cmp empty out
126 '
127
128 -test_config() {
129 - git config "$1" "$2" &&
130 - test_when_finished "git config --unset $1"
131 -}
132 -
128 test_expect_success 'copes with color settings' '
129 rm -f actual &&
130 echo grep.h >expect &&