summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-19 20:22:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-19 20:22:18 (GMT)
commitdf9da64a7c2aee12fd967cb9ff1730312d4b271d (patch)
treedbb7256b2de3788e5db859660771292bf47172ae
parenta883c31af66195556a775f75851f46573c98e43d (diff)
parentc578a09bd6310157ea69bb1d2ec2d3d2cc58c85a (diff)
downloadgit-df9da64a7c2aee12fd967cb9ff1730312d4b271d.zip
git-df9da64a7c2aee12fd967cb9ff1730312d4b271d.tar.gz
git-df9da64a7c2aee12fd967cb9ff1730312d4b271d.tar.bz2
Merge branch 'ak/lazy-prereq-mktemp'
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
-rwxr-xr-xt/t7610-mergetool.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t7610-mergetool.sh b/t/t7610-mergetool.sh
index 76306cf..7217f39 100755
--- 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\"" &&