]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: also wait for all queued events being processed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Apr 2025 20:50:32 +0000 (05:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Apr 2025 00:22:27 +0000 (09:22 +0900)
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 90941d458a2f6b03cb782ab55c16f605b44c4fd8.

test/units/TEST-87-AUX-UTILS-VM.validatefs.sh

index 8fa361693018ffde2b4642525a4cdb8a41db325b..bee835d2213bbb33a87f5f7821fca9a2e5a18e21 100755 (executable)
@@ -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