summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-09-05 00:50:25 +0200
committerKay Sievers <kay.sievers@suse.de>2006-09-05 00:50:25 +0200
commitac528431dd60c6b7f6b664ba430b937a11a32230 (patch)
tree1167bd54cd52e214858b5694d7d4244f3deef1d3 /test
parent64e0ce85de834bfd442228c18fe602d1d988064b (diff)
fix ENV{TEST}="Test: $env{TEST}"
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 1117ecb40c..464098fa65 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1248,6 +1248,19 @@ SUBSYSTEMS=="scsi", KERNEL=="sda1", NAME="bad"
EOF
},
{
+ desc => "ENV{} test (assign 2 times)",
+ subsys => "block",
+ devpath => "/block/sda/sda1",
+ exp_name => "true",
+ rules => <<EOF
+SUBSYSTEMS=="scsi", KERNEL=="sda1", ENV{ASSIGN}="true"
+SUBSYSTEMS=="scsi", KERNEL=="sda1", ENV{ASSIGN}="absolutely-\$env{ASSIGN}"
+SUBSYSTEMS=="scsi", KERNEL=="sda1", ENV{ASSIGN}=="yes", NAME="no"
+SUBSYSTEMS=="scsi", KERNEL=="sda1", ENV{ASSIGN}=="absolutely-true", NAME="true"
+SUBSYSTEMS=="scsi", KERNEL=="sda1", NAME="bad"
+EOF
+ },
+ {
desc => "ENV{} test (assign2)",
subsys => "block",
devpath => "/block/sda/sda1",