* [udev] fix udev-test.pl
@ 2003-12-22 23:15 Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2003-12-22 23:15 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
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
[-- Attachment #2: 02-fix-udev-test.diff --]
[-- Type: text/plain, Size: 346 bytes --]
diff -Nru a/test/udev-test.pl b/test/udev-test.pl
--- a/test/udev-test.pl Tue Dec 23 00:14:29 2003
+++ b/test/udev-test.pl Tue Dec 23 00:14:29 2003
@@ -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";
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [udev] fix udev-test.pl
@ 2003-12-22 23:33 Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2003-12-22 23:33 UTC (permalink / raw)
To: linux-hotplug
On Tue, Dec 23, 2003 at 12:15:43AM +0100, Kay Sievers wrote:
>
> 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
nice fix, thanks.
Applied.
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-22 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-22 23:33 [udev] fix udev-test.pl Greg KH
-- strict thread matches above, loose matches on Subject: below --
2003-12-22 23:15 Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).