mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-24 07:20:56 +07:00
[PATCH] udev-test.pl: add test for DEVNAME export to RUN environment
This commit is contained in:
parent
5165d1dcb7
commit
f040a4a271
@ -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
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user