aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/stress_tests/fsstress-gocryptfs.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/stress_tests/fsstress-gocryptfs.bash b/tests/stress_tests/fsstress-gocryptfs.bash
index 2a75c90..0a79c76 100755
--- a/tests/stress_tests/fsstress-gocryptfs.bash
+++ b/tests/stress_tests/fsstress-gocryptfs.bash
@@ -41,6 +41,11 @@ mkdir $MNT
# Set the GOPATH variable to the default if it is empty
GOPATH=$(go env GOPATH)
+# Clean up old mounts
+for i in $(mount | cut -d" " -f3 | grep $TMPDIR/$MYNAME) ; do
+ fusermount -u $i
+done
+
# FS-specific compile and mount
if [ $MYNAME = fsstress-loopback.bash ]; then
echo "Recompile go-fuse loopback"