From 7c0c86ada1c698bacf4edd987e8856af6491fd32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Mon, 9 Nov 2026 10:54:16 +0000 Subject: [PATCH] ci-start: a cleanup that cannot fail the check The start job on d04bc4b saw the app running after 25 s on X11 and Wayland, then failed in its trap: the document portal had mounted itself at $XDG_RUNTIME_DIR/doc, and rm cannot remove a mount point. Unmount it first, and let the cleanup's leftovers be. Co-Authored-By: Claude Opus 5.5 --- scripts/ci-start.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/ci-start.sh b/scripts/ci-start.sh index 9fa405a..4c02658 100755 --- a/scripts/ci-start.sh +++ b/scripts/ci-start.sh @@ -19,7 +19,10 @@ chmod 700 "$runtime" pids=() cleanup() { for p in "${pids[@]}"; do kill "$p" 2>/dev/null || true; done - rm -rf "$home" "$runtime" + # The document portal, started on the session bus, may have mounted itself (FUSE) at + # $XDG_RUNTIME_DIR/doc; rm cannot remove a mount point, and a cleanup must not fail the check. + fusermount3 -u "$runtime/doc" 2>/dev/null || fusermount -u "$runtime/doc" 2>/dev/null || true + rm -rf "$home" "$runtime" 2>/dev/null || true } trap cleanup EXIT