mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 21:04:15 +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 readlink
|
||||||
export -f realpath
|
export -f realpath
|
||||||
fi
|
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