]> err.no Git - systemd/commitdiff
[PATCH] udev-test.pl: add test for DEVNAME export to RUN environment
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Mon, 4 Apr 2005 13:20:48 +0000 (15:20 +0200)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:55:00 +0000 (23:55 -0700)
test/udev-test.pl

index 91e91bb2ae34bd7ea6129ba94996cfb40aa29104..c1dc8b2f1bc190b2db76f60ea402c1a43502f9fb 100644 (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
        },
        {