From: Daan De Meyer Date: Mon, 13 May 2024 13:06:50 +0000 (+0200) Subject: TEST-64-UDEV-STORAGE: Add missing udevadm settle X-Git-Tag: v256-rc2~18^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e550801e773ebe874e854985b36789283f26045;p=thirdparty%2Fsystemd.git TEST-64-UDEV-STORAGE: Add missing udevadm settle Otherwise we try to do the check before the udev queue is empty which will make it fail. --- diff --git a/test/units/TEST-64-UDEV-STORAGE.sh b/test/units/TEST-64-UDEV-STORAGE.sh index cdef07f5330..728d57cb3f5 100755 --- a/test/units/TEST-64-UDEV-STORAGE.sh +++ b/test/units/TEST-64-UDEV-STORAGE.sh @@ -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))" ]] }