From: Johannes Schindelin Date: Wed, 6 Jun 2007 18:57:40 +0000 (+0100) Subject: t5000: skip ZIP tests if unzip was not found X-Git-Tag: v1.5.3-rc0~151 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3a86f36bedab00446a5b9117981bce25120adfb1;p=git.git t5000: skip ZIP tests if unzip was not found Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index e223c074f..5500505d8 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)'