1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

test: add simple coverage tests for 'udevadm lock'

This commit is contained in:
Yu Watanabe 2023-12-30 02:51:50 +09:00
parent ba340e2a75
commit 13a30c6dc4

View File

@ -238,4 +238,17 @@ assert_rc 124 timeout 5 udevadm wait --removed /sys/class/net/$netdev
udevadm wait --settle /sys/class/net/$netdev udevadm wait --settle /sys/class/net/$netdev
udevadm wait -h udevadm wait -h
udevadm lock --help
udevadm lock --version
for i in /dev/block/*; do
udevadm lock --device "$i" --print
udevadm lock --device "$i" true
(! udevadm lock --device "$i" false)
done
for i in / /usr; do
udevadm lock --backing "$i" --print
udevadm lock --backing "$i" true
(! udevadm lock --backing "$i" false)
done
exit 0 exit 0