aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
parent71144b744acb191d357dbfeb85a256389d4fac3b (diff)
downloadudev-f608f8ac16889ce0e7e800c7f11dacc558d097c1.tar.gz
[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')
-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 590b551d..9e4e192c 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",