Went back to the bats-file temp_make function

Switching to tralston/bats-file allowed to use temp_make on macOS.
pull/1559/head
Nils Winkler 2020-04-20 08:53:28 +02:00
parent eb6469096a
commit 9269c4445d
No known key found for this signature in database
GPG Key ID: 317C6E70C88A89B1
1 changed files with 3 additions and 3 deletions

View File

@ -50,9 +50,9 @@ setup_test_fixture() {
}
setup() {
# Temporarily using `mktemp` directly, since the bats-file function
# `temp_make` does not run on macOS
TEST_TEMP_DIR="$(mktemp -d -t 'bash-it-test.XXXX')"
# The `temp_make` function from "bats-file" requires the tralston/bats-file fork,
# since the original ztombol/bats-file's `temp_make` does not work on macOS.
TEST_TEMP_DIR="$(temp_make --prefix 'bash-it-test-')"
export TEST_TEMP_DIR
export BASH_IT_TEST_DIR="${TEST_TEMP_DIR}/.bash_it"