Skip to content

Commit 3f21fb9

Browse files
artagnongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e20105 commit 3f21fb9

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

t/t4018-diff-funcname.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ sed -e '
9393
s/song;/song();/
9494
' <Beer.perl >Beer-correct.perl
9595

96-
test_config () {
97-
git config "$1" "$2" &&
98-
test_when_finished "git config --unset $1"
99-
}
100-
10196
test_expect_funcname () {
10297
lang=${2-java}
10398
test_expect_code 1 git diff --no-index -U1 \

t/t7810-grep.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -861,11 +861,6 @@ test_expect_success LIBPCRE 'grep -G -F -E -P pattern' '
861861
test_cmp expected actual
862862
'
863863

864-
test_config() {
865-
git config "$1" "$2" &&
866-
test_when_finished "git config --unset $1"
867-
}
868-
869864
cat >expected <<EOF
870865
hello.c<RED>:<RESET>int main(int argc, const char **argv)
871866
hello.c<RED>-<RESET>{

t/t7811-grep-open.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ test_expect_success 'modified file' '
125125
test_cmp empty out
126126
'
127127

128-
test_config() {
129-
git config "$1" "$2" &&
130-
test_when_finished "git config --unset $1"
131-
}
132-
133128
test_expect_success 'copes with color settings' '
134129
rm -f actual &&
135130
echo grep.h >expect &&

0 commit comments

Comments
 (0)