summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-12 14:46:36 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-12 14:46:36 +0200
commit0bfb84e1edd96b1e82ffd74c43b865e5d6dbf204 (patch)
treecf8e46f8314b80aebb7a0e4426e77d2fab9835a3 /test/udev-test.pl
parent0cd4ac473a51577e33e700beccb3479e5565d661 (diff)
IMPORT: add {parent} to import the persistent data of the parent device
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-xtest/udev-test.pl21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index e8cb7c48a9..1bb60bb76e 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1473,6 +1473,27 @@ KERNEL=="dontknow*|ttyUSB*|nothing*", NAME="right"
KERNEL=="ttyUSB*", NAME="wrong"
EOF
},
+ {
+ desc => "IMPORT parent test sequence 1/2 (keep)",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "parent",
+ option => "keep",
+ rules => <<EOF
+KERNEL=="sda", IMPORT="/bin/echo -e \'PARENT_KEY=parent_right\\nWRONG_PARENT_KEY=parent_wrong'"
+KERNEL=="sda", NAME="parent"
+EOF
+ },
+ {
+ desc => "IMPORT parent test sequence 2/2 (keep)",
+ subsys => "block",
+ devpath => "/block/sda/sda1",
+ exp_name => "parentenv-parent_right",
+ option => "clean",
+ rules => <<EOF
+KERNEL=="sda1", IMPORT{parent}="PARENT*", NAME="parentenv-\$env{PARENT_KEY}\$env{WRONG_PARENT_KEY}"
+EOF
+ },
);
# set env