summaryrefslogtreecommitdiff
path: root/buildutil/tap-test
diff options
context:
space:
mode:
Diffstat (limited to 'buildutil/tap-test')
-rwxr-xr-xbuildutil/tap-test3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildutil/tap-test b/buildutil/tap-test
index ac729d8d..e35f2a4a 100755
--- a/buildutil/tap-test
+++ b/buildutil/tap-test
@@ -8,7 +8,8 @@
srcd=$(cd $(dirname $1) && pwd)
bn=$(basename $1)
-tempdir=$(mktemp -d /var/tmp/tap-test.XXXXXX)
+TEST_TMPDIR=${TEST_TMPDIR:-/var/tmp}
+tempdir=$(mktemp -d $TEST_TMPDIR/tap-test.XXXXXX)
touch ${tempdir}/.testtmp
function cleanup () {
if test -f ${tempdir}/.testtmp; then