naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
bd1529
From 7898cd7e75f40627651cec134e3ac3a80176759a Mon Sep 17 00:00:00 2001
bd1529
From: Yu Watanabe <watanabe.yu+github@gmail.com>
bd1529
Date: Thu, 21 Feb 2019 18:04:12 +0900
bd1529
Subject: [PATCH] test-udev: fix alignment and drop unnecessary white spaces
bd1529
bd1529
(cherry picked from commit 3dd2d524141d09d57443ae339e1a77d7ce40f847)
bd1529
bd1529
Related: #1642728
bd1529
---
bd1529
 test/udev-test.pl | 114 +++++++++++++++++++++++-----------------------
bd1529
 1 file changed, 57 insertions(+), 57 deletions(-)
bd1529
bd1529
diff --git a/test/udev-test.pl b/test/udev-test.pl
bd1529
index 002fabd9fd..122359e377 100755
bd1529
--- a/test/udev-test.pl
bd1529
+++ b/test/udev-test.pl
bd1529
@@ -49,7 +49,7 @@ my @tests = (
bd1529
         {
bd1529
                 desc            => "no rules",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "sda" ,
bd1529
+                exp_name        => "sda",
bd1529
                 exp_rem_error   => "yes",
bd1529
                 rules           => <
bd1529
 #
bd1529
@@ -58,7 +58,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "label test of scsi disc",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "boot_disk" ,
bd1529
+                exp_name        => "boot_disk",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", SYMLINK+="boot_disk%n"
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -67,7 +67,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "label test of scsi disc",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "boot_disk" ,
bd1529
+                exp_name        => "boot_disk",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", SYMLINK+="boot_disk%n"
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -76,7 +76,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "label test of scsi disc",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "boot_disk" ,
bd1529
+                exp_name        => "boot_disk",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", SYMLINK+="boot_disk%n"
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -85,7 +85,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "label test of scsi partition",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
bd1529
-                exp_name        => "boot_disk1" ,
bd1529
+                exp_name        => "boot_disk1",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", SYMLINK+="boot_disk%n"
bd1529
 EOF
bd1529
@@ -93,7 +93,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "label test of pattern match",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
bd1529
-                exp_name        => "boot_disk1" ,
bd1529
+                exp_name        => "boot_disk1",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="?ATA", SYMLINK+="boot_disk%n-1"
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA?", SYMLINK+="boot_disk%n-2"
bd1529
@@ -104,7 +104,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "label test of multiple sysfs files",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
bd1529
-                exp_name        => "boot_disk1" ,
bd1529
+                exp_name        => "boot_disk1",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS X ", SYMLINK+="boot_diskX%n"
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS", SYMLINK+="boot_disk%n"
bd1529
@@ -113,7 +113,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "label test of max sysfs files (skip invalid rule)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
bd1529
-                exp_name        => "boot_disk1" ,
bd1529
+                exp_name        => "boot_disk1",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS", ATTRS{scsi_level}=="6", ATTRS{rev}=="4.06", ATTRS{type}=="0", ATTRS{queue_depth}=="32", SYMLINK+="boot_diskXX%n"
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS", ATTRS{scsi_level}=="6", ATTRS{rev}=="4.06", ATTRS{type}=="0", SYMLINK+="boot_disk%n"
bd1529
@@ -122,7 +122,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "catch device by *",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem/0" ,
bd1529
+                exp_name        => "modem/0",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM*", SYMLINK+="modem/%n"
bd1529
 EOF
bd1529
@@ -130,7 +130,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "catch device by * - take 2",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem/0" ,
bd1529
+                exp_name        => "modem/0",
bd1529
                 rules           => <
bd1529
 KERNEL=="*ACM1", SYMLINK+="bad"
bd1529
 KERNEL=="*ACM0", SYMLINK+="modem/%n"
bd1529
@@ -139,7 +139,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "catch device by ?",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem/0" ,
bd1529
+                exp_name        => "modem/0",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM??*", SYMLINK+="modem/%n-1"
bd1529
 KERNEL=="ttyACM??", SYMLINK+="modem/%n-2"
bd1529
@@ -149,7 +149,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "catch device by character class",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem/0" ,
bd1529
+                exp_name        => "modem/0",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM[A-Z]*", SYMLINK+="modem/%n-1"
bd1529
 KERNEL=="ttyACM?[0-9]", SYMLINK+="modem/%n-2"
bd1529
@@ -159,7 +159,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "replace kernel name",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem" ,
bd1529
+                exp_name        => "modem",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
 EOF
bd1529
@@ -167,7 +167,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "Handle comment lines in config file (and replace kernel name)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem" ,
bd1529
+                exp_name        => "modem",
bd1529
                 rules           => <
bd1529
 # this is a comment
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -177,7 +177,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "Handle comment lines in config file with whitespace (and replace kernel name)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem" ,
bd1529
+                exp_name        => "modem",
bd1529
                 rules           => <
bd1529
  # this is a comment with whitespace before the comment
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -187,7 +187,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "Handle whitespace only lines (and replace kernel name)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "whitespace" ,
bd1529
+                exp_name        => "whitespace",
bd1529
                 rules           => <
bd1529
 
bd1529
 
bd1529
@@ -202,7 +202,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "Handle empty lines in config file (and replace kernel name)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem" ,
bd1529
+                exp_name        => "modem",
bd1529
                 rules           => <
bd1529
 
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -212,7 +212,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "Handle backslashed multi lines in config file (and replace kernel name)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem" ,
bd1529
+                exp_name        => "modem",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM0", \\
bd1529
 SYMLINK+="modem"
bd1529
@@ -230,7 +230,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "Handle stupid backslashed multi lines in config file (and replace kernel name)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem" ,
bd1529
+                exp_name        => "modem",
bd1529
                 rules           => <
bd1529
 
bd1529
 #
bd1529
@@ -248,7 +248,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "subdirectory handling",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "sub/direct/ory/modem" ,
bd1529
+                exp_name        => "sub/direct/ory/modem",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM0", SYMLINK+="sub/direct/ory/modem"
bd1529
 EOF
bd1529
@@ -256,7 +256,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "parent device name match of scsi partition",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "first_disk5" ,
bd1529
+                exp_name        => "first_disk5",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", SYMLINK+="first_disk%n"
bd1529
 EOF
bd1529
@@ -264,7 +264,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "test substitution chars",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "Major:8:minor:5:kernelnumber:5:id:0:0:0:0" ,
bd1529
+                exp_name        => "Major:8:minor:5:kernelnumber:5:id:0:0:0:0",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", SYMLINK+="Major:%M:minor:%m:kernelnumber:%n:id:%b"
bd1529
 EOF
bd1529
@@ -281,7 +281,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "sustitution of sysfs value (%s{file})",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "disk-ATA-sda" ,
bd1529
+                exp_name        => "disk-ATA-sda",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", SYMLINK+="disk-%s{vendor}-%k"
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -290,8 +290,8 @@ EOF
bd1529
         {
bd1529
                 desc            => "program result substitution",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "special-device-5" ,
bd1529
-                not_exp_name    => "not" ,
bd1529
+                exp_name        => "special-device-5",
bd1529
+                not_exp_name    => "not",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n special-device", RESULT=="-special-*", SYMLINK+="not"
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n special-device", RESULT=="special-*", SYMLINK+="%c-%n"
bd1529
@@ -300,7 +300,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program result substitution (newline removal)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "newline_removed" ,
bd1529
+                exp_name        => "newline_removed",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo test", RESULT=="test", SYMLINK+="newline_removed"
bd1529
 EOF
bd1529
@@ -308,7 +308,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program result substitution",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "test-0:0:0:0" ,
bd1529
+                exp_name        => "test-0:0:0:0",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n test-%b", RESULT=="test-0:0*", SYMLINK+="%c"
bd1529
 EOF
bd1529
@@ -316,7 +316,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program with lots of arguments",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "foo9" ,
bd1529
+                exp_name        => "foo9",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n foo3 foo4 foo5 foo6 foo7 foo8 foo9", KERNEL=="sda5", SYMLINK+="%c{7}"
bd1529
 EOF
bd1529
@@ -324,7 +324,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program with subshell",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "bar9" ,
bd1529
+                exp_name        => "bar9",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/sh -c 'echo foo3 foo4 foo5 foo6 foo7 foo8 foo9 | sed  s/foo9/bar9/'", KERNEL=="sda5", SYMLINK+="%c{7}"
bd1529
 EOF
bd1529
@@ -332,7 +332,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program arguments combined with apostrophes",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "foo7" ,
bd1529
+                exp_name        => "foo7",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n 'foo3 foo4'   'foo5   foo6   foo7 foo8'", KERNEL=="sda5", SYMLINK+="%c{5}"
bd1529
 EOF
bd1529
@@ -340,7 +340,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program arguments combined with escaped double quotes, part 1",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "foo2" ,
bd1529
+                exp_name        => "foo2",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/sh -c 'printf %%s \\\"foo1 foo2\\\" | grep \\\"foo1 foo2\\\"'", KERNEL=="sda5", SYMLINK+="%c{2}"
bd1529
 EOF
bd1529
@@ -348,7 +348,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program arguments combined with escaped double quotes, part 2",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "foo2" ,
bd1529
+                exp_name        => "foo2",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/sh -c \\\"printf %%s 'foo1 foo2' | grep 'foo1 foo2'\\\"", KERNEL=="sda5", SYMLINK+="%c{2}"
bd1529
 EOF
bd1529
@@ -356,7 +356,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program arguments combined with escaped double quotes, part 3",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "foo2" ,
bd1529
+                exp_name        => "foo2",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/sh -c 'printf \\\"%%s %%s\\\" \\\"foo1 foo2\\\" \\\"foo3\\\"| grep \\\"foo1 foo2\\\"'", KERNEL=="sda5", SYMLINK+="%c{2}"
bd1529
 EOF
bd1529
@@ -364,7 +364,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "characters before the %c{N} substitution",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "my-foo9" ,
bd1529
+                exp_name        => "my-foo9",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n foo3 foo4 foo5 foo6 foo7 foo8 foo9", KERNEL=="sda5", SYMLINK+="my-%c{7}"
bd1529
 EOF
bd1529
@@ -372,7 +372,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "substitute the second to last argument",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "my-foo8" ,
bd1529
+                exp_name        => "my-foo8",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n foo3 foo4 foo5 foo6 foo7 foo8 foo9", KERNEL=="sda5", SYMLINK+="my-%c{6}"
bd1529
 EOF
bd1529
@@ -396,7 +396,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "test substitution by variable name 3",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "850:0:0:05" ,
bd1529
+                exp_name        => "850:0:0:05",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", DEVPATH=="*/sda/*", SYMLINK+="%M%m%b%n"
bd1529
 EOF
bd1529
@@ -404,7 +404,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "test substitution by variable name 4",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "855" ,
bd1529
+                exp_name        => "855",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", DEVPATH=="*/sda/*", SYMLINK+="\$major\$minor\$number"
bd1529
 EOF
bd1529
@@ -412,7 +412,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "test substitution by variable name 5",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5",
bd1529
-                exp_name        => "8550:0:0:0" ,
bd1529
+                exp_name        => "8550:0:0:0",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", DEVPATH=="*/sda/*", SYMLINK+="\$major%m%n\$id"
bd1529
 EOF
bd1529
@@ -429,7 +429,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "non matching SUBSYSTEMS",
bd1529
                 devpath         => "/devices/virtual/tty/console",
bd1529
-                exp_name        => "TTY" ,
bd1529
+                exp_name        => "TTY",
bd1529
                 rules                => <
bd1529
 SUBSYSTEMS=="foo", ATTRS{dev}=="5:1", SYMLINK+="foo"
bd1529
 KERNEL=="console", SYMLINK+="TTY"
bd1529
@@ -438,7 +438,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "ATTRS match",
bd1529
                 devpath         => "/devices/virtual/tty/console",
bd1529
-                exp_name        => "foo" ,
bd1529
+                exp_name        => "foo",
bd1529
                 rules           => <
bd1529
 KERNEL=="console", SYMLINK+="TTY"
bd1529
 ATTRS{dev}=="5:1", SYMLINK+="foo"
bd1529
@@ -447,7 +447,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "ATTR (empty file)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "empty" ,
bd1529
+                exp_name        => "empty",
bd1529
                 rules           => <
bd1529
 KERNEL=="sda", ATTR{test_empty_file}=="?*", SYMLINK+="something"
bd1529
 KERNEL=="sda", ATTR{test_empty_file}!="", SYMLINK+="not-empty"
bd1529
@@ -458,7 +458,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "ATTR (non-existent file)",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "non-existent" ,
bd1529
+                exp_name        => "non-existent",
bd1529
                 rules           => <
bd1529
 KERNEL=="sda", ATTR{nofile}=="?*", SYMLINK+="something"
bd1529
 KERNEL=="sda", ATTR{nofile}!="", SYMLINK+="not-empty"
bd1529
@@ -471,7 +471,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "program and bus type match",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
-                exp_name        => "scsi-0:0:0:0" ,
bd1529
+                exp_name        => "scsi-0:0:0:0",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="usb", PROGRAM=="/bin/echo -n usb-%b", SYMLINK+="%c"
bd1529
 SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n scsi-%b", SYMLINK+="%c"
bd1529
@@ -481,7 +481,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "sysfs parent hierarchy",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "modem" ,
bd1529
+                exp_name        => "modem",
bd1529
                 rules           => <
bd1529
 ATTRS{idProduct}=="007b", SYMLINK+="modem"
bd1529
 EOF
bd1529
@@ -489,7 +489,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "name test with ! in the name",
bd1529
                 devpath         => "/devices/virtual/block/fake!blockdev0",
bd1529
-                exp_name        => "is/a/fake/blockdev0" ,
bd1529
+                exp_name        => "is/a/fake/blockdev0",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", SYMLINK+="is/not/a/%k"
bd1529
 SUBSYSTEM=="block", SYMLINK+="is/a/%k"
bd1529
@@ -499,7 +499,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "name test with ! in the name, but no matching rule",
bd1529
                 devpath         => "/devices/virtual/block/fake!blockdev0",
bd1529
-                exp_name        => "fake/blockdev0" ,
bd1529
+                exp_name        => "fake/blockdev0",
bd1529
                 exp_rem_error   => "yes",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM0", SYMLINK+="modem"
bd1529
@@ -542,7 +542,7 @@ EOF
bd1529
                 desc            => "KERNELS wildcard partial 2",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
                 exp_name        => "scsi-0:0:0:0",
bd1529
-                rules                => <
bd1529
+                rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", SYMLINK+="before"
bd1529
 SUBSYSTEMS=="scsi", KERNELS=="*:0:0:0", SYMLINK+="scsi-0:0:0:0"
bd1529
 EOF
bd1529
@@ -739,7 +739,7 @@ EOF
bd1529
                 devpath         => "/devices/virtual/misc/misc-fake1",
bd1529
                 exp_name        => "node",
bd1529
                 exp_majorminor  => "4095:1",
bd1529
-                rules                => <
bd1529
+                rules           => <
bd1529
 KERNEL=="misc-fake1", SYMLINK+="node"
bd1529
 EOF
bd1529
         },
bd1529
@@ -764,7 +764,7 @@ EOF
bd1529
                 desc            => "multiple symlinks with a lot of s p a c e s",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
                 exp_name        => "one",
bd1529
-                not_exp_name        => " ",
bd1529
+                not_exp_name    => " ",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM[0-9]*", SYMLINK="  one     two        "
bd1529
 EOF
bd1529
@@ -860,7 +860,7 @@ EOF
bd1529
         {
bd1529
                 desc            => "multiple symlinks",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
bd1529
-                exp_name        => "second-0" ,
bd1529
+                exp_name        => "second-0",
bd1529
                 rules           => <
bd1529
 KERNEL=="ttyACM0", SYMLINK="first-%n second-%n third-%n"
bd1529
 EOF
bd1529
@@ -869,8 +869,8 @@ EOF
bd1529
                 desc            => "symlink name '.'",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
                 exp_name        => ".",
bd1529
-                exp_add_error        => "yes",
bd1529
-                exp_rem_error        => "yes",
bd1529
+                exp_add_error   => "yes",
bd1529
+                exp_rem_error   => "yes",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNEL=="sda", SYMLINK+="."
bd1529
 EOF
bd1529
@@ -879,9 +879,9 @@ EOF
bd1529
                 desc            => "symlink node to itself",
bd1529
                 devpath         => "/devices/virtual/tty/tty0",
bd1529
                 exp_name        => "link",
bd1529
-                exp_add_error        => "yes",
bd1529
-                exp_rem_error        => "yes",
bd1529
-                option                => "clean",
bd1529
+                exp_add_error   => "yes",
bd1529
+                exp_rem_error   => "yes",
bd1529
+                option          => "clean",
bd1529
                 rules           => <
bd1529
 KERNEL=="tty0", SYMLINK+="tty0"
bd1529
 EOF
bd1529
@@ -1437,7 +1437,7 @@ EOF
bd1529
                 desc            => "add and match tag",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
                 exp_name        => "found",
bd1529
-                not_exp_name    => "bad" ,
bd1529
+                not_exp_name    => "bad",
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", TAG+="green"
bd1529
 TAGS=="green", SYMLINK+="found"
bd1529
@@ -1456,7 +1456,7 @@ EOF
bd1529
                 desc            => "continuations",
bd1529
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
bd1529
                 exp_name        => "found",
bd1529
-                not_exp_name    => "bad" ,
bd1529
+                not_exp_name    => "bad",
bd1529
                 rules           => $rules_10k_tags_continuation . <
bd1529
 TAGS=="test1", TAGS=="test500", TAGS=="test1234", TAGS=="test9999", TAGS=="test10000", SYMLINK+="bad"
bd1529
 KERNEL=="sda",\\