summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/udev-test.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 91e91bb2ae..c1dc8b2f1b 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1281,6 +1281,19 @@ 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
+ },
+ {
desc => "test RUN key remove",
subsys => "block",
devpath => "/block/sda",