]> err.no Git - systemd/commitdiff
[PATCH] Add another test to udev-test.pl and fix a bug when only running 1 test.
authorgreg@kroah.com <greg@kroah.com>
Tue, 17 Feb 2004 02:25:01 +0000 (18:25 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:27 +0000 (21:32 -0700)
test/udev-test.pl

index c433b84a978068d7a40b4920b64e3933357a245f..62a2bb327b16990521f930a1acbdec09d4b6abf6 100644 (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";