Skip to content

Commit

Permalink
t5000: skip ZIP tests if unzip was not found
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jun 6, 2007
1 parent 6abd0fb commit 3a86f36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/t5000-tar-tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down

0 comments on commit 3a86f36

Please sign in to comment.