From d6701781501117fce3b84b29ccc422297509df10 Mon Sep 17 00:00:00 2001 From: joshr Date: Sat, 25 Aug 2018 10:05:17 -0400 Subject: [PATCH] export SECRETS_DIR to default value --- utils/tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/tests.sh b/utils/tests.sh index 82df28f8..169a0c40 100755 --- a/utils/tests.sh +++ b/utils/tests.sh @@ -7,6 +7,8 @@ set -e # Running all the bats-tests in a dir with spaces: cd "${SECRET_PROJECT_ROOT}"; rm -rf 'tempdir with spaces'; mkdir 'tempdir with spaces'; cd 'tempdir with spaces'; +export SECRETS_DIR=.gitsecret + # bats expects diagnostic lines to be sent to fd 3, matching reges '^ #' (IE, like: `echo '# message here' >&3`) # bats ... 3>&1 shows diagnostic output when errors occur. -SECRETS_DIR=.gitsecret-testdir bats "${SECRET_PROJECT_ROOT}/tests/" 3>&1 +bats "${SECRET_PROJECT_ROOT}/tests/" 3>&1