summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-06-05 04:57:03 +0200
committerKay Sievers <kay.sievers@suse.de>2005-06-05 04:57:03 +0200
commitc974742bf4d6d8fab1e1c90e2e57dae0a2f297a1 (patch)
treef283bf62f4b8b63fb001e1f83382c9ac7848447c /test
parenta15f42c46a7b9ceb5850ea4334c95f099ce74a6f (diff)
udev: allow final assignments :=
The use of KEY:=<value> will make the key unchangeable by later rules. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 3172d3302f..27fe35456e 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1306,6 +1306,29 @@ KERNEL=="sda", ACTION=="remove", RUN+="/bin/rm -f %r/testsymlink2"
KERNEL=="sda", NAME="not-ok2"
EOF
},
+ {
+ desc => "final assignment",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "ok",
+ exp_perms => "root:nobody:0640",
+ rules => <<EOF
+KERNEL=="sda", GROUP:="nobody"
+KERNEL=="sda", GROUP="not-ok", MODE="0640", NAME="ok"
+EOF
+ },
+ {
+ desc => "final assignment",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "ok",
+ exp_perms => "root:nobody:0640",
+ rules => <<EOF
+KERNEL=="sda", GROUP:="nobody"
+SUBSYSTEM=="block", MODE:="640"
+KERNEL=="sda", GROUP="not-ok", MODE="0666", NAME="ok"
+EOF
+ },
);
# set env