mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
PT-572 Removed dbug info
This commit is contained in:
@@ -542,11 +542,8 @@ sub no_diff {
|
||||
$expected_output = "/tmp/pt-test-outfile-trf";
|
||||
}
|
||||
|
||||
print("====================================================================================================");
|
||||
warn("TEST >>>>>>>>>>>>");
|
||||
# Determine cmd type and run it.
|
||||
if ( ref $cmd eq 'CODE' ) {
|
||||
diag("CODE >>>>>>>>>>>>>>>>");
|
||||
output($cmd, file => $tmp_file);
|
||||
}
|
||||
elsif ( $args{cmd_output} ) {
|
||||
|
@@ -77,7 +77,6 @@ eval {
|
||||
chomp(my $v = `$trunk/sandbox/test-env version 2>/dev/null`);
|
||||
$sandbox_version = $v if $v;
|
||||
};
|
||||
our $number=0;
|
||||
|
||||
our $can_load_data = can_load_data();
|
||||
|
||||
@@ -577,7 +576,6 @@ sub no_diff {
|
||||
`cat $expected_output | sed $sed_args > /tmp/pt-test-outfile-trf`;
|
||||
$expected_output = "/tmp/pt-test-outfile-trf";
|
||||
}
|
||||
$number++;
|
||||
# Determine cmd type and run it.
|
||||
if ( ref $cmd eq 'CODE' ) {
|
||||
output($cmd, file => $tmp_file);
|
||||
|
@@ -472,7 +472,6 @@ test_alter_table(
|
||||
],
|
||||
);
|
||||
|
||||
diag(">>>>>>>");
|
||||
test_alter_table(
|
||||
name => "Basic FK drop_swap --execute",
|
||||
table => "pt_osc.country",
|
||||
@@ -489,7 +488,6 @@ test_alter_table(
|
||||
],
|
||||
);
|
||||
|
||||
diag("2 >>>>>>>");
|
||||
# Let the tool auto-determine the fk update method. This should choose
|
||||
# the rebuild_constraints method because the tables are quite small.
|
||||
# This is tested by indicating the rebuild_constraints method, which
|
||||
@@ -513,7 +511,6 @@ test_alter_table(
|
||||
],
|
||||
);
|
||||
|
||||
diag("3 >>>>>>>");
|
||||
# Specify --alter-foreign-keys-method for a table with no child tables.
|
||||
test_alter_table(
|
||||
name => "Child table",
|
||||
@@ -531,7 +528,6 @@ test_alter_table(
|
||||
],
|
||||
);
|
||||
|
||||
diag("4 >>>>>>>");
|
||||
# Use drop_swap to alter address, which no other table references,
|
||||
# so the tool should re-enable --swap-tables and --drop-old-table.
|
||||
test_alter_table(
|
||||
@@ -550,7 +546,6 @@ test_alter_table(
|
||||
],
|
||||
);
|
||||
|
||||
diag("5 >>>>>>>");
|
||||
# Alter city and verify that its fk to country still exists.
|
||||
# (https://bugs.launchpad.net/percona-toolkit/+bug/969726)
|
||||
test_alter_table(
|
||||
|
@@ -79,17 +79,20 @@ is(
|
||||
"Character set is correct",
|
||||
);
|
||||
|
||||
# 3
|
||||
$output = `$trunk/bin/pt-table-sync --execute --lock-and-rename h=127.1,P=12345,u=msandbox,p=msandbox,D=test,t=t1 t=t2 2>&1`;
|
||||
$output = `/tmp/12345/use -e 'show create table test.t2'`;
|
||||
like($output, qr/COMMENT='test1'/, '--lock-and-rename worked');
|
||||
|
||||
$row = $slave1_dbh->selectrow_hashref("SELECT f2 FROM test.t2 WHERE id = 1");
|
||||
is(
|
||||
$row->{f2},
|
||||
$want,
|
||||
"Character set is correct",
|
||||
);
|
||||
SKIP {
|
||||
skip "Skipping in MySQL 8.0.4-rc since there is an error in the server itself", 1 if ($sandbox_version ge '8.0');
|
||||
# 3
|
||||
$output = `$trunk/bin/pt-table-sync --execute --lock-and-rename h=127.1,P=12345,u=msandbox,p=msandbox,D=test,t=t1 t=t2 2>&1`;
|
||||
$output = `/tmp/12345/use -e 'show create table test.t2'`;
|
||||
like($output, qr/COMMENT='test1'/, '--lock-and-rename worked');
|
||||
|
||||
$row = $slave1_dbh->selectrow_hashref("SELECT f2 FROM test.t2 WHERE id = 1");
|
||||
is(
|
||||
$row->{f2},
|
||||
$want,
|
||||
"Character set is correct",
|
||||
);
|
||||
}
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user