@samitouri / QOSamiQemu / commits / 94bd02908a

iotests/108: avoid leaking FUSE mount

The QEMU s390x CI gitlab-runner recently broke because qemu-iotests 108 FUSE mount leaked and prevented the setup of the gitlab-runner environment: chmod: cannot access '/home/gitlab-runner/builds/P3MFS4LUf/0/qemu-project/qemu/build/scratch/qcow2-file-108/fuse-export': Transport endpoint is not connected https://gitlab.com/qemu-project/qemu/-/jobs/14796143507#L11 Always umount the FUSE export when cleaning up to prevent the leak. Closes: https://gitlab.com/qemu-project/qemu/-/work_items/3541 Cc: Hanna Czenczek <hreitz@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20260611125438.194479-1-stefanha@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>

Stefan Hajnoczi committed Jun 11, 2026 at 08:54 UTC 94bd02908a16a5ca0498538615afa9f37337ec87
1 file changed +1 -1
tests/qemu-iotests/108
+1 -1
@@ -34,8 +34,8 @@ _cleanup()
34 if [ -f "$TEST_DIR/qsd.pid" ]; then
35 qsd_pid=$(cat "$TEST_DIR/qsd.pid")
36 kill -KILL "$qsd_pid"
37 - fusermount -u "$TEST_DIR/fuse-export" &>/dev/null
37 fi
38 + fusermount -u "$TEST_DIR/fuse-export" &>/dev/null
39 rm -f "$TEST_DIR/fuse-export"
40 }
41 trap "_cleanup; exit \$status" 0 1 2 3 15