chiark / gitweb /
[PATCH] fix udev-test.pl
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 23 Dec 2003 07:30:51 +0000 (23:30 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:10 +0000 (21:13 -0700)
Here is a small fix for udev-test.pl, to print the METHOD also
for the "whitespace config" tests.

  TEST: Handle comment lines in config file (and replace kernel name)
  method '' for 'class/tty/ttyUSB0' expecting node 'visor'
  add: ok    remove: ok

test/udev-test.pl

index 4773954b9cef9ce9a6b81e1fcf47b1bfaeac8d8b..3e7068faa6d84f0d3643b09a19ee7117375e2c22 100644 (file)
@@ -328,7 +328,7 @@ print CONF "udev_permissions=\"$perm\"\n";
 close CONF;
 
 foreach my $config (@tests) {
 close CONF;
 
 foreach my $config (@tests) {
-       $config->{conf} =~ m/^([A-Z]*).*/;
+       $config->{conf} =~ m/([A-Z]+)\s*,/;
        my $method  = $1;
 
        print "TEST: $config->{desc}\n";
        my $method  = $1;
 
        print "TEST: $config->{desc}\n";