mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] add tests for LABEL rule with a device that has no bus.
This commit is contained in:
parent
2ae1a0c6f3
commit
64682333bb
@ -231,6 +231,27 @@ EOF
|
||||
expected => "foo" ,
|
||||
conf => <<EOF
|
||||
CALLOUT, PROGRAM="/bin/echo -n foo", ID="foo", NAME="foo"
|
||||
REPLACE, KERNEL="console", NAME="TTY"
|
||||
EOF
|
||||
},
|
||||
{
|
||||
desc => "invalid label for device with no bus",
|
||||
subsys => "tty",
|
||||
devpath => "class/tty/console",
|
||||
expected => "TTY" ,
|
||||
conf => <<EOF
|
||||
LABEL, BUS="foo", SYSFS_dev="5:1", NAME="foo"
|
||||
REPLACE, KERNEL="console", NAME="TTY"
|
||||
EOF
|
||||
},
|
||||
{
|
||||
desc => "valid label for device with no bus",
|
||||
subsys => "tty",
|
||||
devpath => "class/tty/console",
|
||||
expected => "foo" ,
|
||||
conf => <<EOF
|
||||
LABEL, SYSFS_dev="5:1", NAME="foo"
|
||||
REPLACE, KERNEL="console", NAME="TTY"
|
||||
EOF
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user