aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-05-28 00:18:26 +0200
committerGuilhem Moulin <guilhem@fripost.org>2019-05-28 00:23:57 +0200
commita4e7170a9547aa64fdbd9001014f36de61134e39 (patch)
tree2f17284487dcb4ecea610a5e3c04b153e5b58310 /tests
parent7e5798599cd67c9d0104c62cb54258e0a144de7f (diff)
tests/run: Honor $TMPDIR if the variable is set.
Otherwise use /dev/shm.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run b/tests/run
index 31af03e..d823f0a 100755
--- a/tests/run
+++ b/tests/run
@@ -36,7 +36,7 @@ if [ ! -d "$TESTDIR" ]; then
exit 1
fi
-ROOTDIR="$(mktemp --tmpdir=/dev/shm --directory "$NAME.XXXXXXXXXX")"
+ROOTDIR="$(mktemp --tmpdir="${TMPDIR:-/dev/shm}" --directory "$NAME.XXXXXXXXXX")"
trap 'rm -rf -- "$ROOTDIR"' EXIT INT TERM
STDOUT="$ROOTDIR/stdout"