b677e7
From b05c8d2e10c773b9bcae17055be48a2291ca6fa6 Mon Sep 17 00:00:00 2001
b677e7
From: Michal Sekletar <msekleta@redhat.com>
b677e7
Date: Tue, 2 Mar 2021 12:57:59 -0500
b677e7
Subject: [PATCH] Revert "test: add test cases for empty string match" and
b677e7
 "test: add test case for multi matches when use ||"
b677e7
b677e7
This effectively reverts commits 03bc565e6e3249385c4e1ca0ae27670ca2ad9a41
b677e7
and 03b766cc937ffa4dcb7cfb25b2ac20d8a00cb6db.
b677e7
b677e7
Resolves: #1931947
b677e7
---
b677e7
 test/udev-test.pl | 98 -----------------------------------------------
b677e7
 1 file changed, 98 deletions(-)
b677e7
b677e7
diff --git a/test/udev-test.pl b/test/udev-test.pl
b677e7
index 5b1e33504e..0612859cda 100755
b677e7
--- a/test/udev-test.pl
b677e7
+++ b/test/udev-test.pl
b677e7
@@ -1732,104 +1732,6 @@ KERNEL=="dontknow|ttyACM0a|nothing|attyACM0", SYMLINK+="wrong1"
b677e7
 KERNEL=="X|attyACM0|dontknow|ttyACM0a|nothing|attyACM0", SYMLINK+="wrong2"
b677e7
 KERNEL=="all|dontknow|ttyACM0", SYMLINK+="right"
b677e7
 KERNEL=="ttyACM0a|nothing", SYMLINK+="wrong3"
b677e7
-EOF
b677e7
-        },
b677e7
-        {
b677e7
-               desc            => "test multi matches 5",
b677e7
-               devices => [
b677e7
-                       {
b677e7
-                               devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
b677e7
-                               exp_links       => ["found"],
b677e7
-                               not_exp_name    => "bad",
b677e7
-                       }],
b677e7
-                rules           => <
b677e7
-KERNEL=="sda", TAG="foo"
b677e7
-TAGS=="|foo", SYMLINK+="found"
b677e7
-TAGS=="|aaa", SYMLINK+="bad"
b677e7
-EOF
b677e7
-        },
b677e7
-        {
b677e7
-                desc            => "test multi matches 6",
b677e7
-                devices => [
b677e7
-                        {
b677e7
-                                devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
b677e7
-                                exp_links       => ["found"],
b677e7
-                                not_exp_name    => "bad",
b677e7
-                       }],
b677e7
-                rules           => <
b677e7
-KERNEL=="sda", TAG=""
b677e7
-TAGS=="|foo", SYMLINK+="found"
b677e7
-TAGS=="aaa|bbb", SYMLINK+="bad"
b677e7
-EOF
b677e7
-        },
b677e7
-        {
b677e7
-                desc            => "test multi matches 7",
b677e7
-                devices => [
b677e7
-                        {
b677e7
-                                devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
b677e7
-                                exp_links       => ["found"],
b677e7
-                                not_exp_name    => "bad",
b677e7
-                        }],
b677e7
-                rules           => <
b677e7
-KERNEL=="sda", TAG="foo"
b677e7
-TAGS=="foo||bar", SYMLINK+="found"
b677e7
-TAGS=="aaa||bbb", SYMLINK+="bad"
b677e7
-EOF
b677e7
-        },
b677e7
-        {
b677e7
-                desc            => "test multi matches 8",
b677e7
-                devices => [
b677e7
-                        {
b677e7
-                                devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
b677e7
-                                exp_links       => ["found"],
b677e7
-                                not_exp_name    => "bad",
b677e7
-                        }],
b677e7
-                rules           => <
b677e7
-KERNEL=="sda", TAG=""
b677e7
-TAGS=="foo||bar", SYMLINK+="found"
b677e7
-TAGS=="aaa|bbb", SYMLINK+="bad"
b677e7
-EOF
b677e7
-        },
b677e7
-        {
b677e7
-                desc            => "test multi matches 9",
b677e7
-                devices => [
b677e7
-                        {
b677e7
-                                devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
b677e7
-                                exp_links       => ["found"],
b677e7
-                                not_exp_name    => "bad",
b677e7
-                        }],
b677e7
-                rules           => <
b677e7
-KERNEL=="sda", TAG="foo"
b677e7
-TAGS=="foo|", SYMLINK+="found"
b677e7
-TAGS=="aaa|", SYMLINK+="bad"
b677e7
-EOF
b677e7
-        },
b677e7
-        {
b677e7
-                desc            => "test multi matches 10",
b677e7
-                devices => [
b677e7
-                        {
b677e7
-                                devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
b677e7
-                                exp_links       => ["found"],
b677e7
-                                not_exp_name    => "bad",
b677e7
-                        }],
b677e7
-                rules           => <
b677e7
-KERNEL=="sda", TAG=""
b677e7
-TAGS=="foo|", SYMLINK+="found"
b677e7
-TAGS=="aaa|bbb", SYMLINK+="bad"
b677e7
-EOF
b677e7
-        },
b677e7
-        {
b677e7
-                desc            => "test multi matches 11",
b677e7
-                devices => [
b677e7
-                        {
b677e7
-                                devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
b677e7
-                                exp_links       => ["found"],
b677e7
-                                not_exp_name    => "bad",
b677e7
-                        }],
b677e7
-                rules           => <
b677e7
-KERNEL=="sda", TAG="c"
b677e7
-TAGS=="foo||bar||c", SYMLINK+="found"
b677e7
-TAGS=="aaa||bbb||ccc", SYMLINK+="bad"
b677e7
 EOF
b677e7
         },
b677e7
         {