diff options
author | greg@kroah.com <greg@kroah.com> | 2004-02-16 18:25:01 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:32:27 -0700 |
commit | b9fc973b9a9e9622e3b7f4c4031ffe0835df5f65 (patch) | |
tree | ab5fbdcea9a2e16b195b7989e46d16323679191e /test/udev-test.pl | |
parent | 7a4877bf6fea5f1d1d8390b7efd6b8a53003631a (diff) |
[PATCH] Add another test to udev-test.pl and fix a bug when only running 1 test.
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r-- | test/udev-test.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index c433b84a97..62a2bb327b 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -348,6 +348,15 @@ 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 + }, ); # set env @@ -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"; |