diff options
author | Jonathan Lebon <jlebon@redhat.com> | 2017-09-20 17:06:41 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-09-21 21:50:40 +0000 |
commit | 335f914d48064fe4e3abbbb3bf8b3e8605f262f9 (patch) | |
tree | 3ec9f8ffd20c91fc91e183cf32201b866e7d973e /buildutil/tap-test | |
parent | 6e4146a35424537b95785bc71b1e19832a1588d6 (diff) | |
download | ostree-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/tap-test')
-rwxr-xr-x | buildutil/tap-test | 3 |
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 |