summaryrefslogtreecommitdiff
path: root/buildutil
diff options
context:
space:
mode:
authorJonathan Lebon <jlebon@redhat.com>2017-09-20 17:06:41 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2017-09-21 21:50:40 +0000
commit335f914d48064fe4e3abbbb3bf8b3e8605f262f9 (patch)
tree3ec9f8ffd20c91fc91e183cf32201b866e7d973e /buildutil
parent6e4146a35424537b95785bc71b1e19832a1588d6 (diff)
downloadostree-335f914d48064fe4e3abbbb3bf8b3e8605f262f9.tar.gz
tests: allow specifying tmpdir
Allow developers to override the default /var/tmp dir, which e.g. might be on overlayfs and thus produces reduced coverage. Closes: #1207 Approved by: cgwalters
Diffstat (limited to 'buildutil')
-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