summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-28 11:22:17 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:00 -0700
commit98bbc835f584ed6792e895519326cc637f64f411 (patch)
treec7dd4680249ead5d3a8cbb1b3a65df7c297a1e31 /test/udev-test.pl
parentaa341f21ebad3cf82fa8ff4f644f80d65ff27a40 (diff)
[PATCH] read %s{}-sysfs values at any device in the chain
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 5d7c5e5b81..ed94629dd1 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1224,6 +1224,15 @@ EOF
BUS=="scsi", KERNEL=="sda1", PROGRAM=="/bin/echo -e name; (/sbin/badprogram)", RESULT="name_ _/sbin/badprogram_", NAME="sane"
EOF
},
+ {
+ desc => "read sysfs value from device down in the chain",
+ subsys => "block",
+ devpath => "/class/tty/ttyUSB0",
+ exp_name => "serial-0000:00:09.0",
+ rules => <<EOF
+KERNEL=="ttyUSB*", NAME="serial-%s{serial}"
+EOF
+ },
);
# set env