summaryrefslogtreecommitdiff
path: root/tests/stress_tests/fsstress-gocryptfs.bash
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stress_tests/fsstress-gocryptfs.bash')
-rwxr-xr-xtests/stress_tests/fsstress-gocryptfs.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/stress_tests/fsstress-gocryptfs.bash b/tests/stress_tests/fsstress-gocryptfs.bash
index 2bb362f..78a7f7d 100755
--- a/tests/stress_tests/fsstress-gocryptfs.bash
+++ b/tests/stress_tests/fsstress-gocryptfs.bash
@@ -12,6 +12,11 @@
#
# Nowadays it should pass an indefinite number of iterations.
+if [[ -z $TMPDIR ]]; then
+ TMPDIR=/var/tmp
+ export TMPDIR
+fi
+
set -eu
cd "$(dirname "$0")"
@@ -28,7 +33,7 @@ then
fi
# Backing directory
-DIR=$(mktemp -d /tmp/$MYNAME.XXX)
+DIR=$(mktemp -d $TMPDIR/$MYNAME.XXX)
# Mountpoint
MNT="$DIR.mnt"
mkdir $MNT