mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
[PATCH] Add another test to udev-test.pl and fix a bug when only running 1 test.
This commit is contained in:
parent
7a4877bf6f
commit
b9fc973b9a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user