summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgaoyi <ymuemc@163.com>2020-07-12 09:27:45 +0200
committergaoyi <ymuemc@163.com>2020-07-12 09:27:45 +0200
commit0d3a8bc7ebd76591e14f7098b4266fd2065ac4db (patch)
tree994ce16b6870054c04262e26ea14b7828c51a0bf
parentudev: specify the end of value (diff)
downloadsystemd-0d3a8bc7ebd76591e14f7098b4266fd2065ac4db.tar.xz
systemd-0d3a8bc7ebd76591e14f7098b4266fd2065ac4db.zip
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",