git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t/t7810-grep.sh: remove duplicate test_config()

From
Jeremiah Mahler <jmmahler@gmail.com>
Date
Jun 5, 2014, 05:18 UTC
Message-ID
<1401945498-26330-1-git-send-email-jmmahler@gmail.com>

t/t7810-grep.sh had its own test_config() function which served the same purpose as the one in t/test-lib-functions.sh. Removed, all tests pass.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
---
 t/t7810-grep.sh | 5 -----
 1 file changed, 5 deletions(-)
diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh
index 63b3039..40615de 100755
--- a/t/t7810-grep.sh
+++ b/t/t7810-grep.sh
@@ -1096,11 +1096,6 @@ test_expect_success 'grep -E pattern with grep.patternType=fixed' '
 	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>{
-- 
2.0.0.153.g79dcccc
Message 1 of 1 in “t/t7810-grep.sh: remove duplicate test_config()”
  1. t/t7810-grep.sh: remove duplicate test_config()Jeremiah Mahler, Jun 5, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.