Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/unzip-in-usr-bin-workaround'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 2 Feb 2017 21:36:55 +0000
(13:36 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 2 Feb 2017 21:36:55 +0000
(13:36 -0800)
Test tweak for FreeBSD where /usr/bin/unzip is unsuitable to run
our tests but /usr/local/bin/unzip is usable.
* js/unzip-in-usr-bin-workaround:
test-lib: on FreeBSD, look for unzip(1) in /usr/local/bin/
t/test-lib.sh
patch
|
blob
|
history
raw
(from parent 1:
d3a0172
)
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index cde7fc7fcf355d04708126980d099df820cd00ce..86d77c16dd3abcedd3fd4937a73b142a6b83b7b6 100644
(file)
--- a/
t/test-lib.sh
+++ b/
t/test-lib.sh
@@
-966,7
+966,8
@@
yes () {
}
# Fix some commands on Windows
-case $(uname -s) in
+uname_s=$(uname -s)
+case $uname_s in
*MINGW*)
# Windows has its own (incompatible) sort and find
sort () {
@@
-1141,6
+1142,7
@@
test_lazy_prereq SANITY '
return $status
'
+test FreeBSD != $uname_s || GIT_UNZIP=${GIT_UNZIP:-/usr/local/bin/unzip}
GIT_UNZIP=${GIT_UNZIP:-unzip}
test_lazy_prereq UNZIP '
"$GIT_UNZIP" -v