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