mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03: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