summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2025-01-07 16:49:37 +0100
committerGitHub <noreply@github.com>2025-01-07 16:49:37 +0100
commit0dfd89fa32b828e284de61c8e98bdf6148d18422 (patch)
tree36279d277eea5e07261b0b8516c40aecfc30fe26 /test
parentresolve: fix typo in DNS_EDE_RCODE_PROHIBITIED constant name (diff)
parentunits: introduce systemd-udevd-varlink.socket (diff)
downloadsystemd-0dfd89fa32b828e284de61c8e98bdf6148d18422.tar.xz
systemd-0dfd89fa32b828e284de61c8e98bdf6148d18422.zip
udev: introduce io.systemd.Udev varlink interface (#35721)
Replaces #25523.
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/TEST-17-UDEV.10.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/units/TEST-17-UDEV.10.sh b/test/units/TEST-17-UDEV.10.sh
index 7ca05f5287..afa05909c4 100755
--- a/test/units/TEST-17-UDEV.10.sh
+++ b/test/units/TEST-17-UDEV.10.sh
@@ -28,9 +28,15 @@ blk="$(mktemp)"
dd if=/dev/zero of="$blk" bs=1M count=1
loopdev="$(losetup --show -f "$blk")"
+# Wait for devices created in the above being processed.
+udevadm settle --timeout 30
+
udevadm -h
+INVOCATION_ID=$(systemctl show --property InvocationID --value systemd-udevd.service)
udevadm control -e
+# Wait for systemd-udevd.service being restarted.
+timeout 30 bash -ec "while [[ \"\$(systemctl show --property InvocationID --value systemd-udevd.service)\" == \"$INVOCATION_ID\" ]]; do sleep .5; done"
udevadm control -l emerg
udevadm control -l alert
udevadm control -l crit