runtests: allow <strippart> to remove lines
For verify file, if the strippart condition removes the line completely it is now removed from the array.
This commit is contained in:
parent
132f5edfbd
commit
1f148c103c
@ -3809,9 +3809,16 @@ sub singletest {
|
|||||||
my $strip;
|
my $strip;
|
||||||
for $strip (@stripfile) {
|
for $strip (@stripfile) {
|
||||||
chomp $strip;
|
chomp $strip;
|
||||||
|
my @newgen;
|
||||||
for(@generated) {
|
for(@generated) {
|
||||||
eval $strip;
|
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);
|
@outfile = fixarray(@outfile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user