mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-03 05:18:24 +03:00
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
This commit is contained in:
parent
6e4146a354
commit
335f914d48
@ -8,7 +8,8 @@
|
|||||||
|
|
||||||
srcd=$(cd $(dirname $1) && pwd)
|
srcd=$(cd $(dirname $1) && pwd)
|
||||||
bn=$(basename $1)
|
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
|
touch ${tempdir}/.testtmp
|
||||||
function cleanup () {
|
function cleanup () {
|
||||||
if test -f ${tempdir}/.testtmp; then
|
if test -f ${tempdir}/.testtmp; then
|
||||||
|
Loading…
Reference in New Issue
Block a user