diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl index c4b24b5ad90..cf7444a8eac 100755 --- a/utils/NightlyTest.pl +++ b/utils/NightlyTest.pl @@ -287,6 +287,7 @@ sub GetQMTestResults { # (filename) push(@lines,"

TEST RESULTS

  1. \n"); my $first_list = 1; my $should_break = 1; + my $nocopy = 0; while ( ) { if ( length($_) > 1 ) { chomp($_); @@ -294,7 +295,10 @@ sub GetQMTestResults { # (filename) ! m/^ qmtest.target:/ && ! m/^ local/ && ! m/^gmake:/ ) { - if ( m/: XFAIL/ || m/: XPASS/ || m/: FAIL/ ) { + if ( m/: XFAIL/ ) { + $nocopy = 1; + } elsif ( m/: XPASS/ || m/: FAIL/ ) { + $nocopy = 0; if ( $first_list ) { $first_list = 0; $should_break = 1; @@ -306,13 +310,15 @@ sub GetQMTestResults { # (filename) if ( $first_list ) { push(@lines,"PERFECT!"); } push(@lines,"

STATISTICS

\n");
 	    $should_break = 0;
+	    $nocopy = 0;
 	  } elsif ( m/^--- TESTS WITH/ ) {
 	    $should_break = 1;
 	    $first_list = 1;
+	    $nocopy = 0;
 	    push(@lines,"

TESTS WITH UNEXPECTED RESULTS

  1. \n"); } elsif ( m/^real / ) { last; - } else { + } elsif (!$nocopy) { if ( $should_break ) { push(@lines,"$_
    \n"); } else { @@ -325,8 +331,8 @@ sub GetQMTestResults { # (filename) close SRCHFILE; } my $content = join("",@lines); - return "$content\n"; -} + return "$content
\n"; +} # Get results of feature tests. my $FeatureTestResults; # String containing the results of the feature tests