test: add test case for multi matches when use "||"

Signed-off-by: gaoyi <ymuemc@163.com>
This commit is contained in:
gaoyi 2020-07-12 03:27:45 -04:00
parent 1e67a9c2cd
commit 0d3a8bc7eb
1 changed files with 11 additions and 0 deletions

View File

@ -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
},
{