diff options
author | msvensson@pilot.(none) <> | 2007-06-07 19:48:34 +0200 |
---|---|---|
committer | msvensson@pilot.(none) <> | 2007-06-07 19:48:34 +0200 |
commit | 6ca8329d12db4ee96750c4f5ee3dbe05f645289a (patch) | |
tree | d9af2a6828e92844c2153f16b1873bab1ce80d19 /mysql-test/lib | |
parent | 25f2fa91bfc11f8e96687c60da4122ea794151e5 (diff) | |
parent | a48e321e37dd4eec8ab89e3f528fa0f84f71785d (diff) | |
download | mariadb-git-6ca8329d12db4ee96750c4f5ee3dbe05f645289a.tar.gz |
Merge pilot.(none):/data/msvensson/mysql/bug28369/my51-bug28369
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_cases.pl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_cases.pl b/mysql-test/lib/mtr_cases.pl index d3db3471e1e..a663e98821f 100644 --- a/mysql-test/lib/mtr_cases.pl +++ b/mysql-test/lib/mtr_cases.pl @@ -596,6 +596,22 @@ sub collect_one_test_case($$$$$$$) { } } + if ( $tinfo->{'need_binlog'} ) + { + if (grep(/^--skip-log-bin/, @::opt_extra_mysqld_opt) ) + { + $tinfo->{'skip'}= 1; + $tinfo->{'comment'}= "Test need binlog"; + return; + } + } + else + { + # Test does not need binlog, add --skip-binlog to + # the options used when starting it + push(@{$tinfo->{'master_opt'}}, "--skip-log-bin"); + } + } } @@ -606,6 +622,7 @@ our @tags= ( ["include/have_innodb.inc", "innodb_test", 1], ["include/have_binlog_format_row.inc", "binlog_format", "row"], + ["include/have_binlog.inc", "need_binlog", 1], ["include/have_binlog_format_statement.inc", "binlog_format", "statement"], ["include/have_binlog_format_mixed.inc", "binlog_format", "mixed"], ["include/big_test.inc", "big_test", 1], |