summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index c7a99e517d..bf6b62f10a 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -259,7 +259,7 @@ BUS=="scsi", ID=="0:0:0:0", NAME="M%M-m%m-n%n-b%3b-s%3s{vendor}"
EOF
},
{
- desc => "import of shellvalue file",
+ desc => "import of shell-value file",
subsys => "block",
devpath => "/block/sda",
exp_name => "subdir/sys/node" ,
@@ -269,6 +269,16 @@ KERNEL=="ttyUSB0", NAME="visor"
EOF
},
{
+ desc => "import of shell-value returned from program",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "node12345678",
+ rules => <<EOF
+BUS=="scsi", IMPORT{exec}="/bin/echo -e \' TEST_KEY=12345678 \\n TEST_key2=98765 \'", NAME="node\$env{TEST_KEY}"
+KERNEL=="ttyUSB0", NAME="visor"
+EOF
+ },
+ {
desc => "sustitution of sysfs value (%s{file})",
subsys => "block",
devpath => "/block/sda",