@matheusbsbs / matheus-bagliano / commits / 3a86f36bed
Fork 0

t5000: skip ZIP tests if unzip was not found

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jun 6, 2007 at 19:57 UTC 3a86f36bedab00446a5b9117981bce25120adfb1
1 file changed +7
t/t5000-tar-tree.sh
+7
@@ -108,6 +108,13 @@ test_expect_success \
108 'git-archive --format=zip' \
109 'git-archive --format=zip HEAD >d.zip'
110
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 +
118 test_expect_success \
119 'extract ZIP archive' \
120 '(mkdir d && cd d && $UNZIP ../d.zip)'