diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-06-25 18:58:49 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-06-25 18:58:49 +0200 |
commit | 319c6700165dc38d7f813ff646bff0196f2aafe6 (patch) | |
tree | 9f69648054cecf9e3a8d8a17ce313f30a69ebab9 /test | |
parent | be4bedd16b934c8663f8c231f07f23091cde8261 (diff) |
IMPORT allow to import program returned keys into the env
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-x | test/udev-test.pl | 12 |
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", |