List:Commits« Previous MessageNext Message »
From:Bjorn Munch Date:October 17 2009 4:35pm
Subject:bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2847) Bug#48130
View as plain text  
#At file:///home/bm136801/my/46007-51/ based on revid:bjorn.munch@stripped

 2847 Bjorn Munch	2009-10-17
      Bug #48130 Expected failures should not count towards max-test-fail
      Test batches may be terminated too early
      Avoid counting exp-fail tests

    modified:
      mysql-test/lib/mtr_report.pm
      mysql-test/mysql-test-run.pl
=== modified file 'mysql-test/lib/mtr_report.pm'
--- a/mysql-test/lib/mtr_report.pm	2009-09-03 06:19:54 +0000
+++ b/mysql-test/lib/mtr_report.pm	2009-10-17 16:34:56 +0000
@@ -146,6 +146,7 @@ sub mtr_report_test ($) {
           }
         }
         $fail = "exp-fail";
+        $tinfo->{exp_fail}= 1;
         last;
       }
     }

=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2009-10-14 07:31:34 +0000
+++ b/mysql-test/mysql-test-run.pl	2009-10-17 16:34:56 +0000
@@ -519,7 +519,8 @@ sub run_test_server ($$$) {
 	      }
 	    }
 	    $num_saved_datadir++;
-	    $num_failed_test++ unless $result->{retries};
+	    $num_failed_test++ unless ($result->{retries} ||
+                                       $result->{exp_fail});
 
 	    if ( !$opt_force ) {
 	      # Test has failed, force is off


Attachment: [text/bzr-bundle] bzr/bjorn.munch@sun.com-20091017163456-4njf9tgq44dgpmsa.bundle
Thread
bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2847) Bug#48130Bjorn Munch17 Oct