+EOF
+ },
+ {
+ desc => "sysfs parent heirachy",
+ subsys => "tty",
+ devpath => "class/tty/ttyUSB0",
+ expected => "visor" ,
+ conf => <<EOF
+SYSFS_idProduct="2008", NAME="visor"
+EOF
+ },
+ {
+ desc => "name test with ! in the name",
+ subsys => "block",
+ devpath => "block/rd!c0d0",
+ expected => "rd/c0d0" ,
+ conf => <<EOF
+BUS="scsi", NAME="%k"
+KERNEL="ttyUSB0", NAME="visor"
+EOF
+ },
+ {
+ desc => "name test with ! in the name, but no matching rule",
+ subsys => "block",
+ devpath => "block/rd!c0d0",
+ expected => "rd/c0d0" ,
+ conf => <<EOF
+KERNEL="ttyUSB0", NAME="visor"