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 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -19,7 +19,10 @@ chmod 700 "$runtime"
|
|||||||
pids=()
|
pids=()
|
||||||
cleanup() {
|
cleanup() {
|
||||||
for p in "${pids[@]}"; do kill "$p" 2>/dev/null || true; done
|
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
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user