1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

test: use --settle option for udevadm trigger

This commit is contained in:
Yu Watanabe 2021-09-16 06:38:08 +09:00
parent e70f57796d
commit a9d8bebacd

View File

@ -10,15 +10,13 @@ ACTION=="add", SUBSYSTEM=="mem", KERNEL=="null", IMPORT{program}="/bin/echo -e H
EOF
udevadm control --reload
udevadm trigger -c add /dev/null
udevadm trigger --settle --action add /dev/null
while : ; do
test -f /run/udev/data/c1:3 &&
udevadm info /dev/null | grep -q 'E: HOGE=aa\\x20\\x20\\x20bb' &&
udevadm info /dev/null | grep -q 'E: FOO=\\x20aaa\\x20' &&
break
test -f /run/udev/data/c1:3
udevadm info /dev/null | grep -q 'E: HOGE=aa\\x20\\x20\\x20bb'
udevadm info /dev/null | grep -q 'E: FOO=\\x20aaa\\x20'
sleep .5
done
rm /run/udev/rules.d/50-testsuite.rules
udevadm control --reload
exit 0