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

[PATCH 2/3] test-lib: quiet down init-db output for tests

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 28, 2006, 09:10 UTC
Message-ID
<11672970561224-git-send-email-normalperson@yhbt.net>
In-Reply-To
<11672970542015-git-send-email-normalperson@yhbt.net>

I don't think anybody running tests needs to know they're running init-db and creating a repository for testing.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 t/test-lib.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index f0f9cd6..ad2b6f6 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -176,7 +176,7 @@ test_create_repo () {
 	repo="$1"
 	mkdir "$repo"
 	cd "$repo" || error "Cannot setup test environment"
-	"$GIT_EXEC_PATH/git" init-db --template=$GIT_EXEC_PATH/templates/blt/ 2>/dev/null ||
+	"$GIT_EXEC_PATH/git" init-db --template=$GIT_EXEC_PATH/templates/blt/ >/dev/null 2>&1 ||
 	error "cannot run git init-db -- have you built things yet?"
 	mv .git/hooks .git/hooks-disabled
 	cd "$owd"
-- 
1.4.4.3.gd4ada
Previous: Eric WongNext: Eric Wong
Message 3 of 6 in “quieting down git-commit (and init-db) in tests”
  1. Eric WongDec 28, 2006
  2. 1/3 t6024-recursive-merge: quiet down this testEric Wong, Dec 28, 2006
  3. 2/3 test-lib: quiet down init-db output for testsEric Wong, Dec 28, 2006
  4. 3/3 t9200-git-cvsexportcommit.sh: quiet down commitEric Wong, Dec 28, 2006
  5. Junio C HamanoDec 28, 2006
  6. Eric WongDec 28, 2006

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.