aboutsummaryrefslogtreecommitdiff
path: root/tests/stress_tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-09-18 18:39:31 +0200
committerJakob Unterwurzacher2020-10-03 14:23:37 +0200
commit3c5a80c27ba096b6938caf9549227620fa522af4 (patch)
tree563e4fd5334748e8217e1e348a4bd56fd4bafac3 /tests/stress_tests
parent068692ac31eb85df226fc94c1cedde0b5d9f0fe8 (diff)
fsstress-gocryptfs.bash: don't hang if TMPDIR ends in /
We would hang like this ./fsstress-loopback.bash Recompile go-fuse loopback: v2.0.3-7-g0b6cbc5 Waiting for mount: xxxxxxxx^C if TMPDIR has a trailing /. The reason is that the paths in /proc/self/mounts are normalized, while TMPDIR may not be.
Diffstat (limited to 'tests/stress_tests')
-rwxr-xr-xtests/stress_tests/fsstress-gocryptfs.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stress_tests/fsstress-gocryptfs.bash b/tests/stress_tests/fsstress-gocryptfs.bash
index 38a98ba..5f8c6dc 100755
--- a/tests/stress_tests/fsstress-gocryptfs.bash
+++ b/tests/stress_tests/fsstress-gocryptfs.bash
@@ -70,7 +70,7 @@ fi
sleep 0.5
echo -n "Waiting for mount: "
-while ! grep "$MNT fuse" /proc/self/mounts > /dev/null
+while ! grep "$(basename $MNT) fuse" /proc/self/mounts > /dev/null
do
sleep 1
echo -n x