summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgaoyi <ymuemc@163.com>2020-07-12 03:27:45 -0400
committergaoyi <ymuemc@163.com>2020-07-12 03:27:45 -0400
commit0d3a8bc7ebd76591e14f7098b4266fd2065ac4db (patch)
tree994ce16b6870054c04262e26ea14b7828c51a0bf
parent1e67a9c2cd6065b850d2fd5e376d8b9bff63bdbc (diff)
downloadsystemd-0d3a8bc7ebd76591e14f7098b4266fd2065ac4db.tar.gz
test: add test case for multi matches when use "||"
Signed-off-by: gaoyi <ymuemc@163.com>
-rwxr-xr-xtest/udev-test.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 95013279b8..2480e4120b 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1325,6 +1325,17 @@ 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
+ },
+ {
desc => "IMPORT parent test sequence 1/2 (keep)",
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
exp_name => "parent",