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

Re: [PATCH] t5000: skip ZIP tets when unzip is absent

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 12, 2007, 15:39 UTC
Message-ID
<Pine.LNX.4.64.0705121735580.4167@racer.site>
In-Reply-To
<7vps58ieuw.fsf@assigned-by-dhcp.cox.net>
Hi,
On Thu, 10 May 2007, Junio C Hamano wrote:
Show 26 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> >
> > ---
> >
> >  t/t5000-tar-tree.sh |    7 +++++++
> >  1 files changed, 7 insertions(+), 0 deletions(-)
> >
> > diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
> > index e223c07..1580592 100755
> > --- a/t/t5000-tar-tree.sh
> > +++ b/t/t5000-tar-tree.sh
> > @@ -108,6 +108,13 @@ test_expect_success \
> >      'git-archive --format=zip' \
> >      'git-archive --format=zip HEAD >d.zip'
> >  
> > +unzip -v 2>/dev/null
> > +if [ $? -ne 10 ]; then
> > +	echo "Skipping ZIP tests, because unzip was not found"
> > +	test_done
> > +	exit
> > +fi
> > +
> 
> Are you sure about this?
No longer.

At least one unzip version I tested returned exit code 10 when correctly showing the usage (IIRC). However, another one has exit code 0!

Also, it should not hardcode "unzip", but instead use "$UNZIP".
So, please ignore this patch. I try to do it properly.

Ciao, Dscho

Previous: Junio C Hamano
Message 3 of 3 in “t5000: skip ZIP tets when unzip is absent”
  1. t5000: skip ZIP tets when unzip is absentJohannes Schindelin, May 10, 2007
  2. Junio C HamanoMay 10, 2007
  3. Johannes SchindelinMay 12, 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.