From 066295fa7a20383415d5b8bb1f4ae7a470228383 Mon Sep 17 00:00:00 2001 From: KlfJoat Date: Tue, 2 Jan 2024 19:51:31 -0600 Subject: [PATCH] fix: use $BATS_RUN_TMPDIR for $BATS_MOCK_TMPDIR Re-running incomplete tests with bats-mock exhibited inconsistent test results. --- stub.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stub.bash b/stub.bash index 52c319b..cf33308 100644 --- a/stub.bash +++ b/stub.bash @@ -1,4 +1,4 @@ -BATS_MOCK_TMPDIR="${BATS_TMPDIR}" +BATS_MOCK_TMPDIR="${BATS_RUN_TMPDIR}" BATS_MOCK_BINDIR="${BATS_MOCK_TMPDIR}/bin" BATS_MOCK_REAL_mkdir=$(which mkdir)