From 6d62bf517d486dff24424a5182772da8bed59e0b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 22 Oct 2026 08:12:24 -0700 Subject: [PATCH] fuse integration: strip a trailing slash off MOUNT_POINT in require-mounted The mount-table grep fallback on hosts without mountpoint(8) would not match a slash-suffixed entry. --- test/fuse_integration/posix_Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/fuse_integration/posix_Makefile b/test/fuse_integration/posix_Makefile index 846a1b123f..32c5c2f45f 100644 --- a/test/fuse_integration/posix_Makefile +++ b/test/fuse_integration/posix_Makefile @@ -230,8 +230,9 @@ endif # mkdir -p would happily point them at a plain local directory and report a # pass the mount never earned. require-mounted: - @if ! mountpoint -q "$(MOUNT_POINT)" 2>/dev/null && ! mount | grep -qF " $(MOUNT_POINT) "; then \ - echo "$(RED)❌ $(MOUNT_POINT) is not a mounted filesystem - refusing to run against the local disk$(RESET)"; \ + @mnt="$(MOUNT_POINT)"; mnt="$${mnt%/}"; \ + if ! mountpoint -q "$$mnt" 2>/dev/null && ! mount | grep -qF " $$mnt "; then \ + echo "$(RED)❌ $$mnt is not a mounted filesystem - refusing to run against the local disk$(RESET)"; \ exit 1; \ fi