From 9269c4445dba8e396dd6a91cb7d346185e8ca4ad Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Mon, 20 Apr 2020 08:53:28 +0200 Subject: [PATCH] Went back to the bats-file temp_make function Switching to tralston/bats-file allowed to use temp_make on macOS. --- test/test_helper.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_helper.bash b/test/test_helper.bash index ece4bd92..ef46cc4e 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -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"