[PATCH] udev-test.pl: add test for DEVNAME export to RUN environment

This commit is contained in:
kay.sievers@vrfy.org 2005-04-04 15:20:48 +02:00 committed by Greg KH
parent 5165d1dcb7
commit f040a4a271

View File

@ -1278,6 +1278,19 @@ EOF
rules => <<EOF
KERNEL=="sda", NAME="ok", RUN+="/bin/ln -s ok %r/testsymlink"
KERNEL=="sda", NAME="not-ok"
EOF
},
{
desc => "test RUN key and DEVNAME",
subsys => "block",
devpath => "/block/sda",
exp_name => "testsymlink",
exp_target => "ok",
exp_rem_error => "yes",
option => "clean",
rules => <<EOF
KERNEL=="sda", NAME="ok", RUN+="/bin/sh -c 'ln -s `basename \$DEVNAME` %r/testsymlink'"
KERNEL=="sda", NAME="not-ok"
EOF
},
{