From a4e7170a9547aa64fdbd9001014f36de61134e39 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 28 May 2019 00:18:26 +0200 Subject: [PATCH] tests/run: Honor $TMPDIR if the variable is set. Otherwise use /dev/shm. --- tests/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.2