diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2014-02-08 23:19:10 +0100 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2014-02-08 23:19:10 +0100 | 
| commit | 1f148c103c81166be4acb224450030e499518036 (patch) | |
| tree | b1b16d8d663dd376c4a3b98397d80418d0d6632c | |
| parent | 132f5edfbd0c5f843deda910974fc7c2d1e52440 (diff) | |
runtests: allow <strippart> to remove lines
For verify file, if the strippart condition removes the line completely
it is now removed from the array.
| -rwxr-xr-x | tests/runtests.pl | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 0de76e3d1..8a47d5853 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3809,9 +3809,16 @@ 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);  | 
