[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 2004-02-16 18:25:01 -08:00 committed by Greg KH
parent 7a4877bf6f
commit b9fc973b9a
1 changed files with 10 additions and 1 deletions

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";