summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-26 02:48:14 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-10-26 02:48:14 +0100
commitdc4c7e463df35776631150e4e18a4ba41749843c (patch)
treef0b78e73ebaf12ab6f8de66d2d2615e2d0420d95 /test
parent1822e9b033fcd91a7dfd3b0bfd12cfbbd93fc470 (diff)
fix $attr{[<subsystem>/<sysname>]<attribute>} substitution
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index f630b74a9d..767f6adeb4 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1656,6 +1656,16 @@ KERNEL=="sda", MODE="440"
KERNEL=="sda", PROGRAM=="/bin/echo 0 0 0400letsdoabuffferoverflow0123456789012345789012345678901234567890", OWNER="%c{1}", GROUP="%c{2}", MODE="%c{3}"
EOF
},
+ {
+ desc => "magic [subsys/sysname] attribute substitution",
+ subsys => "block",
+ devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
+ exp_name => "sda-8741C4G-end",
+ exp_perms => "0:0:0660",
+ rules => <<EOF
+KERNEL=="sda", NAME="%k-%s{[dmi/id]product_name}-end"
+EOF
+ },
);