test-lib: factor out $GIT_UNZIP setup
[gitweb.git] / t / test-lib.sh
index ea1e4a03a7b61392c0a068cb55006165e9a7394a..e20fc6992267ea14b2af75ab928408fc8cc76b88 100644 (file)
@@ -750,3 +750,9 @@ test_lazy_prereq AUTOIDENT '
 # When the tests are run as root, permission tests will report that
 # things are writable when they shouldn't be.
 test -w / || test_set_prereq SANITY
+
+GIT_UNZIP=${GIT_UNZIP:-unzip}
+test_lazy_prereq UNZIP '
+       "$GIT_UNZIP" -v
+       test $? -ne 127
+'