Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ak/lazy-prereq-mktemp'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 19 Jul 2016 20:22:18 +0000
(13:22 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 19 Jul 2016 20:22:18 +0000
(13:22 -0700)
A test that unconditionally used "mktemp" learned that the command
is not necessarily available everywhere.
* ak/lazy-prereq-mktemp:
t7610: test for mktemp before test execution
t/t7610-mergetool.sh
patch
|
blob
|
history
raw
(from parent 1:
a883c31
)
diff --git
a/t/t7610-mergetool.sh
b/t/t7610-mergetool.sh
index 76306cf268a18b7c086cf871f39adf9247f07e32..7217f3968d51d9061b14bd46c473329b26bb087c 100755
(executable)
--- a/
t/t7610-mergetool.sh
+++ b/
t/t7610-mergetool.sh
@@
-589,7
+589,12
@@
test_expect_success 'filenames seen by tools start with ./' '
git reset --hard master >/dev/null 2>&1
'
-test_expect_success 'temporary filenames are used with mergetool.writeToTemp' '
+test_lazy_prereq MKTEMP '
+ tempdir=$(mktemp -d -t foo.XXXXXX) &&
+ test -d "$tempdir"
+'
+
+test_expect_success MKTEMP 'temporary filenames are used with mergetool.writeToTemp' '
git checkout -b test16 branch1 &&
test_config mergetool.writeToTemp true &&
test_config mergetool.myecho.cmd "echo \"\$LOCAL\"" &&