bash settings in tests

This commit is contained in:
Nathaniel Landau
2021-08-20 14:44:06 -04:00
parent 7f5aa3a19d
commit cb97629089
6 changed files with 73 additions and 8 deletions

View File

@@ -43,9 +43,16 @@ setup() {
VERBOSE=false
FORCE=false
DRYRUN=false
set -o errtrace
set -o nounset
set -o pipefail
}
teardown() {
set +o nounset
set +o errtrace
set +o pipefail
popd >&2
temp_del "${TESTDIR}"
}