diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2019-05-28 00:18:26 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2019-05-28 00:23:57 +0200 |
commit | a4e7170a9547aa64fdbd9001014f36de61134e39 (patch) | |
tree | 2f17284487dcb4ecea610a5e3c04b153e5b58310 /tests | |
parent | 7e5798599cd67c9d0104c62cb54258e0a144de7f (diff) |
tests/run: Honor $TMPDIR if the variable is set.
Otherwise use /dev/shm.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |