chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5165d1d
)
[PATCH] udev-test.pl: add test for DEVNAME export to RUN environment
author
kay.sievers@vrfy.org
<kay.sievers@vrfy.org>
Mon, 4 Apr 2005 13:20:48 +0000
(15:20 +0200)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 06:55:00 +0000
(23:55 -0700)
test/udev-test.pl
patch
|
blob
|
history
diff --git
a/test/udev-test.pl
b/test/udev-test.pl
index 91e91bb2ae34bd7ea6129ba94996cfb40aa29104..c1dc8b2f1bc190b2db76f60ea402c1a43502f9fb 100644
(file)
--- a/
test/udev-test.pl
+++ b/
test/udev-test.pl
@@
-1278,6
+1278,19
@@
EOF
rules => <<EOF
KERNEL=="sda", NAME="ok", RUN+="/bin/ln -s ok %r/testsymlink"
KERNEL=="sda", NAME="not-ok"
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
},
{
EOF
},
{