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
This commit is contained in:
Junio C Hamano 2016-07-28 11:26:03 -07:00
Родитель 6cbec0da47 c578a09bd6
Коммит 1ecc6b291c
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -589,7 +589,12 @@ test_expect_success 'filenames seen by tools start with ./' '
git reset --hard master >/dev/null 2>&1 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 && git checkout -b test16 branch1 &&
test_config mergetool.writeToTemp true && test_config mergetool.writeToTemp true &&
test_config mergetool.myecho.cmd "echo \"\$LOCAL\"" && test_config mergetool.myecho.cmd "echo \"\$LOCAL\"" &&