summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-11-24 05:44:01 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:02 -0700
commitf8f00338a15409f685fc51184862bca5988aee21 (patch)
treea17c8dc7b0da513e3e59f3ab277844966e15ff60
parent58a16d607ba79b03640e67679d0c54527b00111b (diff)
[PATCH] udev-test.pl - tweaks
I found two missing characters and optimized $PWD.
-rw-r--r--test/udev-test.pl9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 02f8ff6319..e4a4ddcda8 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -21,9 +21,7 @@
use warnings;
use strict;
-my $PWD = `pwd`;
-chomp($PWD);
-
+my $PWD = $ENV{PWD};
my $sysfs = "sys/";
my $udev_bin = "../udev";
my $udev_root = "udev-root/"; # !!! directory will be removed !!!
@@ -80,7 +78,7 @@ TOPOLOGY, BUS="scsi", PLACE="0:0:0:0", NAME="Major:%M:minor:%m:kernelnumber:%n:b
EOF
},
{
- desc => "callout result subtitution, only last should match",
+ desc => "callout result substitution, only last should match",
subsys => "block",
devpath => "block/sda/sda3",
expected => "special-device-3" ,
@@ -93,7 +91,7 @@ CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n special-device", ID="special-*", NAME
EOF
},
{
- desc => "callout program subtitution",
+ desc => "callout program substitution",
subsys => "block",
devpath => "block/sda/sda3",
expected => "test-0:0:0:0" ,
@@ -151,7 +149,6 @@ foreach my $config (@tests) {
system("tree $udev_root");
print "\n";
$error++;
-# next;
}
udev("remove", $config->{subsys}, $config->{devpath}, \$config->{conf});