diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-03-19 16:13:14 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-19 09:10:15 -0700 |
commit | 3f21fb99ab5335146617f21b885dc41afc7943d6 (patch) | |
tree | 2586d6ea05fd179a8bf88e4164a43e20cea203d2 | |
parent | 7e2010537e96d0a1144520222f20ba1dc3d61441 (diff) | |
download | git-3f21fb99ab5335146617f21b885dc41afc7943d6.tar.gz git-3f21fb99ab5335146617f21b885dc41afc7943d6.tar.xz |
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>
-rwxr-xr-x | t/t4018-diff-funcname.sh | 5 | ||||
-rwxr-xr-x | t/t7810-grep.sh | 5 | ||||
-rwxr-xr-x | t/t7811-grep-open.sh | 5 |
3 files changed, 0 insertions, 15 deletions
diff --git a/t/t4018-diff-funcname.sh b/t/t4018-diff-funcname.sh index 4bd2a1c83..9b5db6c77 100755 --- a/t/t4018-diff-funcname.sh +++ b/t/t4018-diff-funcname.sh @@ -93,11 +93,6 @@ sed -e ' s/song;/song();/ ' <Beer.perl >Beer-correct.perl -test_config () { - git config "$1" "$2" && - test_when_finished "git config --unset $1" -} - test_expect_funcname () { lang=${2-java} test_expect_code 1 git diff --no-index -U1 \ diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index 3021cf251..b33b7ba6d 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -861,11 +861,6 @@ test_expect_success LIBPCRE 'grep -G -F -E -P pattern' ' test_cmp expected actual ' -test_config() { - git config "$1" "$2" && - test_when_finished "git config --unset $1" -} - cat >expected <<EOF hello.c<RED>:<RESET>int main(int argc, const char **argv) hello.c<RED>-<RESET>{ diff --git a/t/t7811-grep-open.sh b/t/t7811-grep-open.sh index a8957782c..e1951a5cb 100755 --- a/t/t7811-grep-open.sh +++ b/t/t7811-grep-open.sh @@ -125,11 +125,6 @@ test_expect_success 'modified file' ' test_cmp empty out ' -test_config() { - git config "$1" "$2" && - test_when_finished "git config --unset $1" -} - test_expect_success 'copes with color settings' ' rm -f actual && echo grep.h >expect && |