From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] t5000: skip ZIP tets when unzip is absent
Date: Sat, 12 May 2007 17:39:10 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0705121735580.4167@racer.site> (raw)
In-Reply-To: <7vps58ieuw.fsf@assigned-by-dhcp.cox.net>
Hi,
On Thu, 10 May 2007, Junio C Hamano wrote:
> 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
prev parent reply other threads:[~2007-05-12 15:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 10:47 [PATCH] t5000: skip ZIP tets when unzip is absent Johannes Schindelin
2007-05-10 20:49 ` Junio C Hamano
2007-05-12 15:39 ` Johannes Schindelin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0705121735580.4167@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).