mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
test: add test case for multi matches when use "||"
Signed-off-by: gaoyi <ymuemc@163.com>
This commit is contained in:
parent
1e67a9c2cd
commit
0d3a8bc7eb
@ -1322,6 +1322,17 @@ EOF
|
||||
KERNEL=="sda", TAG=""
|
||||
TAGS=="foo|", SYMLINK+="found"
|
||||
TAGS=="aaa|bbb", SYMLINK+="bad"
|
||||
EOF
|
||||
},
|
||||
{
|
||||
desc => "test multi matches 11",
|
||||
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
|
||||
exp_name => "found",
|
||||
not_exp_name => "bad",
|
||||
rules => <<EOF
|
||||
KERNEL=="sda", TAG="c"
|
||||
TAGS=="foo||bar||c", SYMLINK+="found"
|
||||
TAGS=="aaa||bbb||ccc", SYMLINK+="bad"
|
||||
EOF
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user