Add $_ERROR_PREFIX to test_helper.bash.

This commit is contained in:
William Melody 2020-05-17 11:25:28 -07:00
parent 2f6290f3d4
commit 8f2553b5a3
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ setup() {
export _HOSTS_TEMP_PATH
_HOSTS_TEMP_PATH="${_HOSTS_TEMP_DIR}/hosts"
export _ERROR_PREFIX
_ERROR_PREFIX="$(tput setaf 1)!$(tput sgr0) "
cat "${BATS_TEST_DIRNAME}/fixtures/hosts" > "${_HOSTS_TEMP_PATH}"
export HOSTS_PATH="${_HOSTS_TEMP_PATH}"