diff options
author | Jakob Unterwurzacher | 2019-10-06 22:34:19 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-10-06 22:34:19 +0200 |
commit | 65bc006a78c67b8f8cf0b01f8ed948dca6c1e408 (patch) | |
tree | b0d70bf38a380a7581741df6f7d6b20089fbd6b0 /tests/stress_tests/fsstress-gocryptfs.bash | |
parent | a1f647740182a74eb84eed3135b0f171ac753fdb (diff) |
stress_tests: use /var/tmp by default
There is a good chance that /tmp is tmpfs, and we want to
run our tests on a real filesystem.
Diffstat (limited to 'tests/stress_tests/fsstress-gocryptfs.bash')
-rwxr-xr-x | tests/stress_tests/fsstress-gocryptfs.bash | 7 |
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 |