diff options
author | Jeff King <peff@peff.net> | 2013-03-10 21:31:47 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-10 20:06:19 -0700 |
commit | f838ce5826a2deffff7b70986fc7392d7114013e (patch) | |
tree | 6ba10ff68dac8a7fdd7b7caf6e938581e19a6b40 /t/test-lib.sh | |
parent | ca70c9ea7224e1e47d8ab46ea67ba9e29ce8a121 (diff) | |
download | git-f838ce5826a2deffff7b70986fc7392d7114013e.tar.gz |
test-lib: factor out $GIT_UNZIP setup
We set up the $GIT_UNZIP variable and lazy prereq in
multiple places (and the next patch is about to add another
one). Let's factor it out to avoid repeating ourselves.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index ea1e4a03a7..e20fc69922 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -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 +' |