From 3c5a80c27ba096b6938caf9549227620fa522af4 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 18 Sep 2020 18:39:31 +0200 Subject: [PATCH] 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. --- tests/stress_tests/fsstress-gocryptfs.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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