mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 16:49:42 +00:00
ensure workdir is set on tests
This commit is contained in:
9
tests-ng/helpers
vendored
9
tests-ng/helpers
vendored
@@ -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
|
||||
Reference in New Issue
Block a user