diff options
author | gaoyi <ymuemc@163.com> | 2020-07-12 03:27:45 -0400 |
---|---|---|
committer | The Plumber <50238977+systemd-rhel-bot@users.noreply.github.com> | 2021-01-25 15:05:18 +0100 |
commit | 03b766cc937ffa4dcb7cfb25b2ac20d8a00cb6db (patch) | |
tree | 55e695b9db52992ce24f0daf2c29d6424839e6f7 | |
parent | 03bc565e6e3249385c4e1ca0ae27670ca2ad9a41 (diff) | |
download | systemd-03b766cc937ffa4dcb7cfb25b2ac20d8a00cb6db.tar.gz |
test: add test case for multi matches when use "||"
Signed-off-by: gaoyi <ymuemc@163.com>
(cherry picked from commit 0d3a8bc7ebd76591e14f7098b4266fd2065ac4db)
Related: #1642728
-rwxr-xr-x | test/udev-test.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 50d978391b..4bf97d82bb 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", |