1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 22:04:44 +00:00

ensure workdir is set on tests

This commit is contained in:
deadc0de6
2022-12-07 15:46:46 +01:00
parent fb81798a28
commit e8f5ad9f83

9
tests-ng/helpers vendored
View File

@@ -101,3 +101,12 @@ if [[ $OSTYPE == 'darwin'* ]]; then
export -f readlink
export -f realpath
fi
# workdir tricks
# when tests are called without using the
# top level tests.sh script which sets the workdir
if [ -z "${DOTDROP_WORKDIR}" ]; then
_workdir="/tmp/dotdrop-test-workdir"
export DOTDROP_WORKDIR="${_workdir}"
clear_on_exit "${_workdir}"
fi