]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-64-UDEV-STORAGE: Add missing udevadm settle
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 13 May 2024 13:06:50 +0000 (15:06 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 May 2024 10:43:28 +0000 (12:43 +0200)
Otherwise we try to do the check before the udev queue is empty which
will make it fail.

test/units/TEST-64-UDEV-STORAGE.sh

index cdef07f5330a05cfc8543209e24fbec0734d41ba..728d57cb3f5e01d755263ec34ba7d83f7934275c 100755 (executable)
@@ -257,6 +257,7 @@ $(for ((j = 1; j <= num_part; j++)); do echo 'name="Hello world", size=2M'; done
 EOF
     done
 
+    udevadm settle
     lsblk --noheadings -a -o NAME,PARTLABEL
     [[ "$(lsblk --noheadings -a -o NAME,PARTLABEL | grep -c "Hello world")" -eq "$((num_part * num_disk))" ]]
 }