Don't run binlog_tests unless MySQL 5.1+. Use output() instead of full_output().

This commit is contained in:
Daniel Nichter
2012-10-26 16:52:24 -06:00
parent 302cb7f457
commit 3d03a3a0dc

View File

@@ -180,9 +180,10 @@ is(
# https://bugs.launchpad.net/percona-toolkit/+bug/1016131 # https://bugs.launchpad.net/percona-toolkit/+bug/1016131
# ############################################################################# # #############################################################################
($output) = full_output( ($output) = output(
sub { pt_table_checksum::main(@args, '--tables', 'mysql.user,mysql.host', sub { pt_table_checksum::main(@args, '--tables', 'mysql.user,mysql.host',
'--columns', 'some_fale_column') }, '--columns', 'some_fale_column') },
stderr => 1,
); );
like( like(
@@ -196,8 +197,10 @@ like(
# https://bugs.launchpad.net/percona-toolkit/+bug/938068 # https://bugs.launchpad.net/percona-toolkit/+bug/938068
# ############################################################################# # #############################################################################
{ SKIP: {
diag("Adding two new slaves to master"); skip "binlog_format tests require MySQL 5.1 and newer", 2
unless $sandbox_version ge '5.1';
local $ENV{BINLOG_FORMAT} = 'ROW'; local $ENV{BINLOG_FORMAT} = 'ROW';
diag(`$trunk/sandbox/start-sandbox slave 12348 12345`); diag(`$trunk/sandbox/start-sandbox slave 12348 12345`);
local $ENV{BINLOG_FORMAT} = 'MIXED'; local $ENV{BINLOG_FORMAT} = 'MIXED';
@@ -220,6 +223,7 @@ is_deeply(
diag(`$trunk/sandbox/stop-sandbox 12348 12349`); diag(`$trunk/sandbox/stop-sandbox 12348 12349`);
} }
# ############################################################################# # #############################################################################
# Done. # Done.
# ############################################################################# # #############################################################################