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

[PATCH] t5000: silence unzip availability check

From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Jun 9, 2007, 06:31 UTC
Message-ID
<466A4930.2020602@lsrfire.ath.cx>
In-Reply-To
<Pine.LNX.4.64.0706061956540.4046@racer.site>

unzip -v on (at least) Ubuntu prints a screenful of version info to stdout. Get rid of it since we only want to know if unzip is installed or not.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index 5500505..a6c5bf6 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -108,7 +108,7 @@ test_expect_success \
     'git-archive --format=zip' \
     'git-archive --format=zip HEAD >d.zip'
 
-$UNZIP -v 2>/dev/null
+$UNZIP -v >/dev/null 2>&1
 if [ $? -eq 127 ]; then
 	echo "Skipping ZIP tests, because unzip was not found"
 	test_done
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 5 in “Git requires zip?”
  1. Linus TorvaldsJun 5, 2007
  2. Johannes SchindelinJun 5, 2007
  3. t5000: skip ZIP tests if unzip was not foundJohannes Schindelin, Jun 6, 2007
  4. t5000: silence unzip availability checkRené Scharfe, Jun 9, 2007
  5. Johannes SchindelinJun 9, 2007

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.