From: Yu Watanabe Date: Tue, 25 Apr 2023 10:14:55 +0000 (+0900) Subject: test: add test case of negative match for SYMLINK and TAG X-Git-Tag: v254-rc1~625^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F27398%2Fhead;p=thirdparty%2Fsystemd.git test: add test case of negative match for SYMLINK and TAG --- diff --git a/test/udev-test.pl b/test/udev-test.pl index 0164c158b50..855c6aec3cf 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -231,7 +231,8 @@ EOF "string_escape___replace/foo_bbb", "env_with_space", "default/replace/mode_foo__hoge", - "replace_env_harder_foo__hoge"], + "replace_env_harder_foo__hoge", + "match", "unmatch"], not_exp_links => ["removed1", "removed2", "removed3", "unsafe/../../path", "/nondev/path/will/be/refused"], }], rules => < [ { devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", - exp_links => ["found"], - not_exp_name => "bad", + exp_links => ["found", "found2"], + not_exp_name => ["bad", "bad2"], }], rules => <