From: kay.sievers@vrfy.org Date: Tue, 23 Dec 2003 07:30:51 +0000 (-0800) Subject: [PATCH] fix udev-test.pl X-Git-Tag: 010~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=5cac7def788fc6dec19dc8185f9c2c7c7c8d49a2 [PATCH] fix udev-test.pl 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 --- diff --git a/test/udev-test.pl b/test/udev-test.pl index 4773954b9..3e7068faa 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -328,7 +328,7 @@ print CONF "udev_permissions=\"$perm\"\n"; 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";