File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 44
55open LOG," <tests.log" or die " Failed to open tests.log\n " ;
66
7- my $ignore = 1;
7+ my $printed_this_test = 1;
88my $current_test = " " ;
99
1010while (<LOG>) {
1111 chomp ;
1212 if (/ ^Test '(.+)'/ ) {
1313 $current_test = $1 ;
14- $ignore = 0;
15- } elsif (1 == $ignore ) {
16- next ;
14+ $printed_this_test = 0;
1715 } elsif (/ \[ FAILED\]\s *$ / ) {
18- $ignore = 1;
19- print " Failed test: $current_test \n " ;
20- my $outf = ` sed -n '2p' $current_test /test.desc` ;
21- $outf =~ s /\. .*$/ .out/ ;
22- system (" cat $current_test /$outf " );
23- print " \n\n " ;
16+ if (0 == $printed_this_test ) {
17+ $printed_this_test = 1;
18+ print " \n\n " ;
19+ print " Failed test: $current_test \n " ;
20+ my $outf = ` sed -n '2p' $current_test /test.desc` ;
21+ $outf =~ s /\. .*$/ .out/ ;
22+ system (" cat $current_test /$outf " );
23+ print " \n\n Failed test.desc lines:\n " ;
24+ }
25+ print " $_ \n " ;
2426 }
2527}
2628
You can’t perform that action at this time.
0 commit comments