From 5524e82ad5cdab8e02316ab9b329e4caef103a2d Mon Sep 17 00:00:00 2001 From: John D Pell Date: Wed, 12 Jan 2022 00:04:42 -0800 Subject: [PATCH] BATS: unofficial strict mode --- test/test_helper.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_helper.bash b/test/test_helper.bash index 97288016..2b4aa894 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -101,6 +101,7 @@ function setup() { BASH_IT_CONFIG="${BASH_IT?}" #"${BATS_TEST_TMPDIR//\/\///}" export XDG_CACHE_HOME="${BATS_TEST_TMPDIR?}" + set -Eeuo pipefail # Bash Unofficial Strict Mode setup_test_fixture local_setup } @@ -109,6 +110,7 @@ function teardown() { unset GIT_CONFIG_NOSYSTEM local_teardown clean_test_fixture + set +Eeuo pipefail # Bash Unofficial Strict Mode } function teardown_file() {