summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 8ae01c31d4..31bc990b81 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -235,6 +235,15 @@ BUS="scsi", PROGRAM="/bin/echo -n special-device", RESULT="special-*", NAME="%c-
EOF
},
{
+ desc => "program result substitution (newline removal)",
+ subsys => "block",
+ devpath => "/block/sda/sda3",
+ exp_name => "newline_removed" ,
+ conf => <<EOF
+BUS="scsi", PROGRAM="/bin/echo test", RESULT="test", NAME="newline_removed"
+EOF
+ },
+ {
desc => "program result substitution",
subsys => "block",
devpath => "/block/sda/sda3",
@@ -580,6 +589,8 @@ EOF
$ENV{UDEV_TEST} = "yes";
$ENV{SYSFS_PATH} = $sysfs;
$ENV{UDEV_CONFIG_FILE} = $main_conf;
+$ENV{UDEV_NO_SLEEP} = "yes";
+$ENV{UDEV_NO_DEVD} = "yes";
sub udev {