Skip to content

Commit 3a86f36

Browse files
dschogitster
authored andcommitted
t5000: skip ZIP tests if unzip was not found
Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6abd0fb commit 3a86f36

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t5000-tar-tree.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ test_expect_success \
108108
'git-archive --format=zip' \
109109
'git-archive --format=zip HEAD >d.zip'
110110

111+
$UNZIP -v 2>/dev/null
112+
if [ $? -eq 127 ]; then
113+
echo "Skipping ZIP tests, because unzip was not found"
114+
test_done
115+
exit
116+
fi
117+
111118
test_expect_success \
112119
'extract ZIP archive' \
113120
'(mkdir d && cd d && $UNZIP ../d.zip)'

0 commit comments

Comments
 (0)