added --skip-check-slave-lag

This commit is contained in:
Carlos Salguero
2017-04-12 12:34:39 -03:00
parent 4ff8e664ae
commit 2fe4afc9cf
6 changed files with 91 additions and 7 deletions

View File

@@ -184,9 +184,9 @@ $output = output(
chomp($output);
is(
like(
$output,
'',
qr/Checking lag on h=127.0.0.1,P=12346 -> 127.0.0.1:12346/,
"Bug 1074179: ignore-tables-regex works with --replicate-check-only"
);
# #############################################################################
@@ -206,6 +206,22 @@ like(
"Bug 1016131: ptc should skip tables where all columns are excluded"
);
# Test #12
{
$output = output(
sub { pt_table_checksum::main(@args,
'--skip-check-slave-lag', "h=127.0.0.1,P=".$sb->port_for('slave1'),
),
},
);
my $skipping_str = "Skipping.*".$sb->port_for('slave1');
like(
$output,
qr/$skipping_str/s,
"--skip-check-slave-lag",
);
}
# #############################################################################
# Illegal division by zero at pt-table-checksum line 7950
# https://bugs.launchpad.net/percona-toolkit/+bug/1075638
@@ -319,6 +335,7 @@ diag(`/tmp/12346/stop >/dev/null`);
diag(`/tmp/12346/start >/dev/null`);
#
# #############################################################################
# Done.
# #############################################################################