summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-06 23:20:39 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:03 -0700
commitf608f8ac16889ce0e7e800c7f11dacc558d097c1 (patch)
tree62bd906f51ed64867e2ae890ad23279a792e4269 /test/udev-test.pl
parent71144b744acb191d357dbfeb85a256389d4fac3b (diff)
[PATCH] fix problems using scsi_id with udevstart
when udevstart was running we didn't set the environment and the subsystem argument for the callouts the dev.d/ scripts. Here is a fix, that sets that with every udevstart iteration, corrects argv[0] to be the basename() only not the whole path and adds a test for invoking callouts without arguments.
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 590b551dfe..9e4e192c51 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -256,6 +256,15 @@ BUS="scsi", PROGRAM="/bin/echo -n special-device", RESULT="special-*", NAME="%c-
EOF
},
{
+ desc => "program result substitution (no argument should be subsystem)",
+ subsys => "block",
+ devpath => "/block/sda/sda3",
+ exp_name => "subsys_block" ,
+ conf => <<EOF
+BUS="scsi", PROGRAM="/bin/echo", RESULT="block", NAME="subsys_block"
+EOF
+ },
+ {
desc => "program result substitution (newline removal)",
subsys => "block",
devpath => "/block/sda/sda3",