diff options
author | Jakob Unterwurzacher | 2020-09-18 18:39:31 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-10-03 14:23:37 +0200 |
commit | 3c5a80c27ba096b6938caf9549227620fa522af4 (patch) | |
tree | 563e4fd5334748e8217e1e348a4bd56fd4bafac3 | |
parent | 068692ac31eb85df226fc94c1cedde0b5d9f0fe8 (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.
-rwxr-xr-x | tests/stress_tests/fsstress-gocryptfs.bash | 2 |
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 |