Commit 1f148c10 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

runtests: allow <strippart> to remove lines

For verify file, if the strippart condition removes the line completely
it is now removed from the array.
parent 132f5edf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3809,10 +3809,17 @@ sub singletest {
            my $strip;
            for $strip (@stripfile) {
                chomp $strip;
                my @newgen;
                for(@generated) {
                    eval $strip;
                    if($_) {
                        push @newgen, $_;
                    }
                }
                # this is to get rid of array entries that vanished (zero
                # length) because of replacements
                @generated = @newgen;
            }

            @outfile = fixarray(@outfile);