Skip to contentSkip to conversation

fix udev-test.pl

udev Kay Sievers 1 participant 1 message Dec 22, 2003

lore
Share & tools
lore
#0 lore raw

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

thanks,
Kay

test/udev-test.pl +1 -1
diff -Nru a/test/udev-test.pl b/test/udev-test.pl
@@ -308,7 +308,7 @@
 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";