Went back to the bats-file temp_make function
Switching to tralston/bats-file allowed to use temp_make on macOS.pull/1559/head
parent
eb6469096a
commit
9269c4445d
|
|
@ -50,9 +50,9 @@ setup_test_fixture() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
# Temporarily using `mktemp` directly, since the bats-file function
|
# The `temp_make` function from "bats-file" requires the tralston/bats-file fork,
|
||||||
# `temp_make` does not run on macOS
|
# since the original ztombol/bats-file's `temp_make` does not work on macOS.
|
||||||
TEST_TEMP_DIR="$(mktemp -d -t 'bash-it-test.XXXX')"
|
TEST_TEMP_DIR="$(temp_make --prefix 'bash-it-test-')"
|
||||||
export TEST_TEMP_DIR
|
export TEST_TEMP_DIR
|
||||||
|
|
||||||
export BASH_IT_TEST_DIR="${TEST_TEMP_DIR}/.bash_it"
|
export BASH_IT_TEST_DIR="${TEST_TEMP_DIR}/.bash_it"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue