]> err.no Git - systemd/commitdiff
test: check string substitutions in OWNER and GROUP
authorBenjamin Gilbert <bgilbert@cs.cmu.edu>
Fri, 22 May 2009 18:54:46 +0000 (20:54 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 22 May 2009 18:54:46 +0000 (20:54 +0200)
String substitutions in OWNER and GROUP keys were broken in udev 137-142.
Explicitly test for this, since such breakage will not manifest in typical
rulesets.

test/udev-test.pl

index 30e8d2ac1088447c120e27b994a6ccee667fa81c..5516468bb7d1f5fe8fda062b4e02bb064fdc44bc 100755 (executable)
@@ -1654,14 +1654,14 @@ KERNEL=="sda", MODE="0000"
 EOF
        },
        {
-               desc            => "TEST PROGRAM feeds MODE",
+               desc            => "TEST PROGRAM feeds OWNER, GROUP, MODE",
                subsys          => "block",
                devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
                exp_name        => "sda",
-               exp_perms       => "0:0:0400",
+               exp_perms       => "5000:100:0400",
                rules           => <<EOF
 KERNEL=="sda", MODE="666"
-KERNEL=="sda", PROGRAM=="/bin/echo 0 0400", OWNER="%c{1}", GROUP="%c{2}", MODE="%c{3}"
+KERNEL=="sda", PROGRAM=="/bin/echo 5000 100 0400", OWNER="%c{1}", GROUP="%c{2}", MODE="%c{3}"
 EOF
        },
        {