test: also wait for all queued events being processed

Otherwise, if already 'remove' uevent for the device is queued, then
the device node may not exist any more when 'udevadm wait' command succeeds.

Follow-up for 90941d458a.
This commit is contained in:
Yu Watanabe
2025-04-12 05:50:32 +09:00
parent 644c934348
commit 012d76ab79

View File

@@ -98,7 +98,7 @@ getfattr --dump /tmp/validatefs-test.mount/efi
# the generic one we must mount by hand
mkdir -p /tmp/validatefs-test.mount/somewhere/else
udevadm wait --timeout=30 /dev/disk/by-label/qnurx
udevadm wait --settle --timeout=30 /dev/disk/by-label/qnurx
mount /dev/disk/by-label/qnurx /tmp/validatefs-test.mount/somewhere/else
getfattr --dump /tmp/validatefs-test.mount/somewhere/else