Skip to content

Commit 90f18df

Browse files
committed
BATS: unofficial strict mode
1 parent 4f32406 commit 90f18df

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
@@ -100,6 +100,7 @@ function setup() {
100100
# Locate the temporary folder:
101101
BASH_IT_CONFIG="${BASH_IT?}" #"${BATS_TEST_TMPDIR//\/\///}"
102102

103+
set -Eeuo pipefail # Bash Unofficial Strict Mode
103104
setup_test_fixture
104105
local_setup
105106
}
@@ -108,6 +109,7 @@ function teardown() {
108109
unset GIT_CONFIG_NOSYSTEM
109110
local_teardown
110111
clean_test_fixture
112+
set +Eeuo pipefail # Bash Unofficial Strict Mode
111113
}
112114

113115
function teardown_file() {

0 commit comments

Comments
 (0)