Skip to content

Commit 5524e82

Browse files
committed
BATS: unofficial strict mode
1 parent d37505b commit 5524e82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_helper.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ function setup() {
101101
BASH_IT_CONFIG="${BASH_IT?}" #"${BATS_TEST_TMPDIR//\/\///}"
102102
export XDG_CACHE_HOME="${BATS_TEST_TMPDIR?}"
103103

104+
set -Eeuo pipefail # Bash Unofficial Strict Mode
104105
setup_test_fixture
105106
local_setup
106107
}
@@ -109,6 +110,7 @@ function teardown() {
109110
unset GIT_CONFIG_NOSYSTEM
110111
local_teardown
111112
clean_test_fixture
113+
set +Eeuo pipefail # Bash Unofficial Strict Mode
112114
}
113115

114116
function teardown_file() {

0 commit comments

Comments
 (0)