From 0d3a8bc7ebd76591e14f7098b4266fd2065ac4db Mon Sep 17 00:00:00 2001 From: gaoyi Date: Sun, 12 Jul 2020 03:27:45 -0400 Subject: [PATCH] test: add test case for multi matches when use "||" Signed-off-by: gaoyi --- test/udev-test.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ -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 => <