BATS: unofficial strict mode

pull/2032/head
John D Pell 2022-01-12 00:04:42 -08:00 committed by John D Pell
parent d37505b636
commit 5524e82ad5
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,7 @@ function setup() {
BASH_IT_CONFIG="${BASH_IT?}" #"${BATS_TEST_TMPDIR//\/\///}" BASH_IT_CONFIG="${BASH_IT?}" #"${BATS_TEST_TMPDIR//\/\///}"
export XDG_CACHE_HOME="${BATS_TEST_TMPDIR?}" export XDG_CACHE_HOME="${BATS_TEST_TMPDIR?}"
set -Eeuo pipefail # Bash Unofficial Strict Mode
setup_test_fixture setup_test_fixture
local_setup local_setup
} }
@ -109,6 +110,7 @@ function teardown() {
unset GIT_CONFIG_NOSYSTEM unset GIT_CONFIG_NOSYSTEM
local_teardown local_teardown
clean_test_fixture clean_test_fixture
set +Eeuo pipefail # Bash Unofficial Strict Mode
} }
function teardown_file() { function teardown_file() {