[PATCH] Add another test to udev-test.pl and fix a bug when only running 1 test.

This commit is contained in:
greg@kroah.com
2005-04-26 21:32:27 -07:00
committed by Greg KH
parent 7a4877bf6f
commit b9fc973b9a
+10 -1
View File
@@ -346,6 +346,15 @@ EOF
conf => <<EOF
BUS="scsi", NAME="%k"
KERNEL="ttyUSB0", NAME="visor"
EOF
},
{
desc => "name test with ! in the name, but no matching rule",
subsys => "block",
devpath => "block/rd!c0d0",
expected => "rd/c0d0" ,
conf => <<EOF
KERNEL="ttyUSB0", NAME="visor"
EOF
},
);
@@ -418,7 +427,7 @@ if ($ARGV[0]) {
$test_num = $ARGV[0];
print "udev-test will run test number $test_num only\n";
run_test($tests[$test_num], $test_num);
run_test($tests[$test_num-1], $test_num);
} else {
# test all
print "\nudev-test will run ".($#tests + 1)." tests:\n\n";