Commit 6272f6f2 authored by unknown's avatar unknown
Browse files

mysql-test-run.sh:

  Added feature to disable tests from a list in a file "disabled.def"
  Moved down the code that disables, so that --do-test and --start-from
  don't list the disabled tests not in range.
disabled.def:
  List of test cases to temporarely disable


mysql-test/t/disabled.def:
  List of test cases to temporarely disable
mysql-test/mysql-test-run.sh:
  Added feature to disable tests from a list in a file "disabled.def"
  Moved down the code that disables, so that --do-test and --start-from
  don't list the disabled tests not in range.
parent fc9e2b42
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -1506,12 +1506,6 @@ run_testcase ()
 if [ -n "$RESULT_EXT" -a \( x$RECORD = x1 -o -f "$result_file$RESULT_EXT" \) ] ; then
   result_file="$result_file$RESULT_EXT"
 fi
 if [ -f "$TESTDIR/$tname.disabled" ]
 then
   comment=`$CAT $TESTDIR/$tname.disabled`;
   disable_test $tname "$comment"
   return
 fi
 if [ "$USE_MANAGER" = 1 ] ; then
  many_slaves=`$EXPR \( \( $tname : rpl_failsafe \) != 0 \) \| \( \( $tname : rpl_chain_temp_table \) != 0 \)`
 fi
@@ -1541,6 +1535,20 @@ run_testcase ()
   return
 fi

 if [ -f "$TESTDIR/$tname.disabled" ]
 then
   comment=`$CAT $TESTDIR/$tname.disabled`;
   disable_test $tname "$comment"
   return
 fi
 comment=`$GREP "^$tname *: *" $TESTDIR/disabled.def`;
 if [ -n "$comment" ]
 then
   comment=`echo $comment | sed 's/^[^:]*: *//'`
   disable_test $tname "$comment"
   return
 fi

 if [ "x$USE_EMBEDDED_SERVER" != "x1" ] ; then
   # Stop all slave threads, so that we don't have useless reconnection
   #  attempts and error messages in case the slave and master servers restart.
+20 −0
Original line number Diff line number Diff line
##############################################################################
#
#  List the test cases that are to be disabled temporarely.
#
#  Separate the test case name and the comment with ':'.
#
#      <testcasename>  : Comment test
#
#  Don't use any TAB characters for whitespace.
#
##############################################################################

ndb_alter_table   : NDB team needs to fix
ndb_autodiscover  : NDB team needs to fix
ndb_autodiscover2 : NDB team needs to fix
ndb_cache_multi   : NDB team needs to fix
ndb_cache_multi2  : NDB team needs to fix
ndb_multi         : NDB team needs to fix
ndb_restore       : NDB team needs to fix