[PATCH] t5000: skip ZIP tests if unzip was not found
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 6, 2007, 18:57 UTC
- Message-ID
- <Pine.LNX.4.64.0706061956540.4046@racer.site>
- In-Reply-To
- <Pine.LNX.4.64.0706051819290.4046@racer.site>
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
On Tue, 5 Jun 2007, Johannes Schindelin wrote:
> I seem to remember that I patched it already. > > http://thread.gmane.org/gmane.comp.version-control.git/46854/focus=46899 > > Unfortunately, the patch was incorrect, and I forgot to do it > properly. Will try this afternoon.
So, took me some more time. Sorry.
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..5500505 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 [ $? -eq 127 ]; then + echo "Skipping ZIP tests, because unzip was not found" + test_done + exit +fi + test_expect_success \ 'extract ZIP archive' \ '(mkdir d && cd d && $UNZIP ../d.zip)'