dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
bd1529
From 7821ecc0b35c422bc8ed26e0e44c841d067f88d7 Mon Sep 17 00:00:00 2001
bd1529
From: Martin Wilck <mwilck@suse.com>
bd1529
Date: Tue, 24 Apr 2018 18:27:25 +0200
bd1529
Subject: [PATCH] test/udev-test.pl: merge "space and var with space" tests
bd1529
bd1529
As we can check multiple links in a single test now, these 3
bd1529
tests can be merged into one.
bd1529
bd1529
(cherry picked from commit 2084fe0d3290c525ecb9faa07d07c3abc2488e59)
bd1529
bd1529
Related: #1642728
bd1529
---
bd1529
 test/udev-test.pl | 31 +++----------------------------
bd1529
 1 file changed, 3 insertions(+), 28 deletions(-)
bd1529
bd1529
diff --git a/test/udev-test.pl b/test/udev-test.pl
bd1529
index 6928439d14..880a73b10b 100755
bd1529
--- a/test/udev-test.pl
bd1529
+++ b/test/udev-test.pl
bd1529
@@ -1103,34 +1103,9 @@ EOF
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                                exp_links        => ["first"],
bd1529
-                                not_exp_links    => [" "],
bd1529
-                        }],
bd1529
-                rules           => <
bd1529
-ENV{WITH_WS}="   one  two  three   "
bd1529
-SYMLINK="  first  name-\$env{WITH_WS}-end another_symlink a b c "
bd1529
-EOF
bd1529
-        },
bd1529
-        {
bd1529
-                desc            => "symlink with space and var with space, part 2",
bd1529
-                devices => [
bd1529
-                        {
bd1529
-                                devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                                exp_links        => ["name-one_two_three-end"],
bd1529
-                                not_exp_links    => [" "],
bd1529
-                        }],
bd1529
-                rules           => <
bd1529
-ENV{WITH_WS}="   one  two  three   "
bd1529
-SYMLINK="  first  name-\$env{WITH_WS}-end another_symlink a b c "
bd1529
-EOF
bd1529
-        },
bd1529
-        {
bd1529
-                desc            => "symlink with space and var with space, part 3",
bd1529
-                devices => [
bd1529
-                        {
bd1529
-                                devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                                exp_links        => ["another_symlink"],
bd1529
-                                not_exp_links    => [" "],
bd1529
+                                exp_links       => ["first", "name-one_two_three-end",
bd1529
+                                                    "another_symlink", "a", "b", "c"],
bd1529
+                                not_exp_links   => [" "],
bd1529
                         }],
bd1529
                 rules           => <
bd1529
 ENV{WITH_WS}="   one  two  three   "