3 my @output_buffer = ();
5 my $detectedSomeGuff = 0;
10 my $contains_sense = '';
11 my $contains_guff = '';
14 my $line = pop @lines;
15 if ($line =~ m/Test run started :/ ||
16 $line =~ m/ITEM Assertion OK/ ||
17 $line =~ m/Test run finished :/) {
19 } elsif ($line =~ m/^[\+\-][^\-\+]/) {
20 $contains_sense = '1';
23 if ($contains_guff && $contains_sense) {
24 print STDERR
"Patch fragment with mixed good/bad changes in '$ARGV' near $line_index\n";
27 elsif ( $contains_guff ) {
30 # print "contains guff: $contains_guff\n";
31 return $contains_guff;
37 my @lines = @
{$array};
39 if (pure_guff
(\
@lines)) {
45 my $line = pop @lines;
46 push @output_buffer, $line;
56 if (/^\@\@/ || /^[^ \-\+]/) {
57 output_lines
(\
@lines);
65 output_lines
(\
@lines);
67 # $detectedSomeGuff contains the skipped hunks that contain acceptable diff
68 # e.g. a timestamp or an OK assertion that contains different content
70 #print "frag_count = $frag_count fragstocount = $fragstocount detectedSomeGuff = $detectedSomeGuff \n";
71 if ($frag_count > $detectedSomeGuff) {