List:Commits« Previous MessageNext Message »
From:Bjorn Munch Date:May 7 2012 9:02pm
Subject:bzr push into mysql-trunk branch (bjorn.munch:3796 to 3797)
View as plain text  
 3797 Bjorn Munch	2012-05-07
      unitest/unit.pl failed to fail if a test failed, using TAP

    modified:
      unittest/unit.pl
 3796 Andrei Elkin	2012-05-07
      rpl_stm_mts_crash_safe fails on PB2.
      
      Experimenting with the test to reveal more info.
     @ mysql-test/include/wait_condition.inc
        $slave_failure_printout control is added to force
        post-failure printout on the slave side.
     @ mysql-test/suite/rpl/t/rpl_stm_mts_crash_safe.test
        Temprorarily made the test as regular to observe it
        during few pushes.

    modified:
      mysql-test/extra/rpl_tests/rpl_mts_crash_safe.inc
      mysql-test/include/wait_condition.inc
      mysql-test/suite/rpl/t/rpl_stm_mts_crash_safe.test
=== modified file 'unittest/unit.pl'
--- a/unittest/unit.pl	2011-09-07 10:08:09 +0000
+++ b/unittest/unit.pl	2012-05-07 21:01:12 +0000
@@ -121,7 +121,9 @@ sub run_cmd (@) {
         {
           my %args = ( exec => [ ], verbosity => $opt_verbose );
           my $harness = TAP::Harness->new( \%args );
-          $harness->runtests(@files);
+	  my $aggreg= $harness->runtests(@files);
+	  # Signal failure to calling scripts
+	  exit(1) if $aggreg->get_status() ne 'PASS';
         }
         else
         {

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-trunk branch (bjorn.munch:3796 to 3797) Bjorn Munch8 May