aboutsummaryrefslogtreecommitdiff
path: root/tests/stress_tests/extractloop.bash
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stress_tests/extractloop.bash')
-rwxr-xr-xtests/stress_tests/extractloop.bash9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/stress_tests/extractloop.bash b/tests/stress_tests/extractloop.bash
index 742715d..c6e9632 100755
--- a/tests/stress_tests/extractloop.bash
+++ b/tests/stress_tests/extractloop.bash
@@ -11,6 +11,11 @@
#
# See Documentation/extractloop.md for example output.
+if [[ -z $TMPDIR ]]; then
+ TMPDIR=/var/tmp
+ export TMPDIR
+fi
+
set -eu
# Run at low priority to not annoy the user too much
@@ -23,8 +28,8 @@ source ../fuse-unmount.bash
# Setup dirs
../dl-linux-tarball.bash
-cd /tmp
-EXTRACTLOOP_TMPDIR=/tmp/extractloop_tmpdir
+cd $TMPDIR
+EXTRACTLOOP_TMPDIR=$TMPDIR/extractloop_tmpdir
mkdir -p $EXTRACTLOOP_TMPDIR
CRYPT=$(mktemp -d $EXTRACTLOOP_TMPDIR/XXX)
CSV=$CRYPT.csv