bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Using test filenames as default test name


From: Tim Ruehsen
Subject: Re: [Bug-wget] Using test filenames as default test name
Date: Thu, 02 Oct 2014 14:41:07 +0200
User-agent: KMail/4.14.1 (Linux/3.16-2-amd64; KDE/4.14.1; x86_64; ; )

On Thursday 02 October 2014 13:07:09 Giuseppe Scrivano wrote:
> Tim Ruehsen <address@hidden> writes:
> > -my $the_test = HTTPTest->new (name =>
> > "Test--spider-r-HTTP-Content-Disposition", +my $the_test = HTTPTest->new
> > (
> > 
> >                                input => \%urls,
> >                                cmdline => $cmdline,
> >                                errcode => $expected_error_code,
> 
> I think it is a good idea and that we should just do it.  The only minor
> issue that I see is "my $the_test = HTTPTest->new (" on a line by
> itself, we should drop the new line and have "input =>" on the same
> line, like:
> 
> my $the_test = HTTPTest->new (input => \%urls,
> 
> this pattern repeats for all the tests.

Ok, finally found a sed pattern:
sed -i ':x; /HTTPTest->new ($/ { N; s/\n[[:space:]]*//; tx }' *.px

Here is the amended patch.

Tim

Attachment: 0001-use-test-filename-as-default-test-name.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]