diff options
-rw-r--r-- | db-functions | 2 | ||||
-rw-r--r-- | test/lib/common.inc | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/db-functions b/db-functions index 1b77035..c992fe5 100644 --- a/db-functions +++ b/db-functions @@ -16,7 +16,7 @@ restore_umask () { } # set up general environment -WORKDIR=$(mktemp -d /tmp/${0##*/}.XXXXXXXXXX) +WORKDIR=$(mktemp -d "${TMPDIR}/${0##*/}.XXXXXXXXXX") LOCKS=() # check if messages are to be printed using color diff --git a/test/lib/common.inc b/test/lib/common.inc index a703152..3001ad8 100644 --- a/test/lib/common.inc +++ b/test/lib/common.inc @@ -1,6 +1,8 @@ set -E . "$(dirname ${BASH_SOURCE[0]})/../../config" +# override the default TMPDIR +export TMPDIR="$(mktemp -d /tmp/${0##*/}.XXXXXXXXXX)" . "$(dirname ${BASH_SOURCE[0]})/../../db-functions" signpkg() { |