summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-28 18:26:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-28 18:26:03 (GMT)
commit1ecc6b291c162b9fc7b59a3251c4cbbcf3b07b84 (patch)
tree03e3f09002e7a66e7e1a19146c66a3d72ce8936e /t
parent6cbec0da471590a2b3de1b98795ba20f274d53fa (diff)
parentc578a09bd6310157ea69bb1d2ec2d3d2cc58c85a (diff)
downloadgit-1ecc6b291c162b9fc7b59a3251c4cbbcf3b07b84.zip
git-1ecc6b291c162b9fc7b59a3251c4cbbcf3b07b84.tar.gz
git-1ecc6b291c162b9fc7b59a3251c4cbbcf3b07b84.tar.bz2
Merge branch 'ak/lazy-prereq-mktemp' into maint
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
Diffstat (limited to 't')
-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\"" &&