|
|
|
@ -4,8 +4,8 @@
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
#TEST_DIR=/tmp/git-secret-test
|
|
|
|
|
TEST_DIR="/tmp/git secret test"
|
|
|
|
|
TEST_DIR=/tmp/git-secret-test
|
|
|
|
|
#TEST_DIR="/tmp/git secret test" # this breaks tests badly
|
|
|
|
|
|
|
|
|
|
rm -rf "${TEST_DIR}"
|
|
|
|
|
mkdir "${TEST_DIR}"
|
|
|
|
@ -26,7 +26,8 @@ chmod 0700 "${TEST_DIR}"
|
|
|
|
|
# bats expects diagnostic lines to be sent to fd 3, matching regex '^# '
|
|
|
|
|
# (IE, like: `echo '# message here' >&3`).
|
|
|
|
|
# bats ... 3>&1 shows diagnostic output
|
|
|
|
|
bats "${SECRETS_PROJECT_ROOT}/tests" 3>&1
|
|
|
|
|
#bats "${SECRETS_PROJECT_ROOT}/tests" 3>&1
|
|
|
|
|
bats "${SECRETS_PROJECT_ROOT}/tests/test_for_perl.bats" 3>&1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
rm -rf "${TEST_DIR}"
|
|
|
|
|