daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
bd1529
From 0e0b90ffcf0731865846bfa2754a809cc2b8c53e Mon Sep 17 00:00:00 2001
bd1529
From: Martin Wilck <mwilck@suse.com>
bd1529
Date: Tue, 24 Apr 2018 17:57:47 +0200
bd1529
Subject: [PATCH] test/udev-test.pl: fix wrong test descriptions
bd1529
bd1529
udev hasn't supported renaming device nodes for some time.
bd1529
bd1529
(cherry picked from commit 46bc71b2b73f8a1e27dc5e142730e9877dd05e3e)
bd1529
bd1529
Related: #1642728
bd1529
---
bd1529
 test/udev-test.pl | 15 ++++++++-------
bd1529
 1 file changed, 8 insertions(+), 7 deletions(-)
bd1529
bd1529
diff --git a/test/udev-test.pl b/test/udev-test.pl
bd1529
index f5edecefd0..d5d0e130e3 100755
bd1529
--- a/test/udev-test.pl
bd1529
+++ b/test/udev-test.pl
bd1529
@@ -212,7 +212,7 @@ KERNEL=="ttyACM[0-9]*", SYMLINK+="modem/%n"
bd1529
 EOF
bd1529
         },
bd1529
         {
bd1529
-                desc            => "replace kernel name",
bd1529
+                desc            => "don't replace kernel name",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
@@ -223,7 +223,7 @@ KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
 EOF
bd1529
         },
bd1529
         {
bd1529
-                desc            => "Handle comment lines in config file (and replace kernel name)",
bd1529
+                desc            => "Handle comment lines in config file (and don't replace kernel name)",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
@@ -236,7 +236,7 @@ KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
 EOF
bd1529
         },
bd1529
         {
bd1529
-                desc            => "Handle comment lines in config file with whitespace (and replace kernel name)",
bd1529
+                desc            => "Handle comment lines in config file with whitespace (and don't replace kernel name)",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
@@ -249,7 +249,7 @@ KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
 EOF
bd1529
         },
bd1529
         {
bd1529
-                desc            => "Handle whitespace only lines (and replace kernel name)",
bd1529
+                desc            => "Handle whitespace only lines (and don't replace kernel name)",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
@@ -267,7 +267,7 @@ KERNEL=="ttyACM0", SYMLINK+="whitespace"
bd1529
 EOF
bd1529
         },
bd1529
         {
bd1529
-                desc            => "Handle empty lines in config file (and replace kernel name)",
bd1529
+                desc            => "Handle empty lines in config file (and don't replace kernel name)",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
@@ -280,7 +280,7 @@ KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
 EOF
bd1529
         },
bd1529
         {
bd1529
-                desc            => "Handle backslashed multi lines in config file (and replace kernel name)",
bd1529
+                desc            => "Handle backslashed multi lines in config file (and don't replace kernel name)",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
@@ -303,8 +303,9 @@ EOF
bd1529
 KERNEL=="ttyACM0", PROGRAM=="/bin/echo -e \\101", RESULT=="A", SYMLINK+="aaa"
bd1529
 EOF
bd1529
         },
bd1529
+        # 20
bd1529
         {
bd1529
-                desc            => "Handle stupid backslashed multi lines in config file (and replace kernel name)",
bd1529
+                desc            => "Handle stupid backslashed multi lines in config file (and don't replace kernel name)",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",