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:
parent
ba340e2a75
commit
13a30c6dc4
@ -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 -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
|
||||
|
Loading…
Reference in New Issue
Block a user