mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-17 00:47:44 +00:00
this test is brittle; no changes, just add some diag()
This commit is contained in:
@@ -17,6 +17,7 @@ shift @INC; # our unshift (above)
|
|||||||
shift @INC; # PerconaTest's unshift
|
shift @INC; # PerconaTest's unshift
|
||||||
require "$trunk/bin/pt-table-checksum";
|
require "$trunk/bin/pt-table-checksum";
|
||||||
|
|
||||||
|
diag("Stopping/reconfiguring/restarting sandboxes 12348 and 12349");
|
||||||
diag(`$trunk/sandbox/stop-sandbox 12348 >/dev/null`);
|
diag(`$trunk/sandbox/stop-sandbox 12348 >/dev/null`);
|
||||||
diag(`SKIP_INNODB=1 $trunk/sandbox/start-sandbox master 12348 >/dev/null`);
|
diag(`SKIP_INNODB=1 $trunk/sandbox/start-sandbox master 12348 >/dev/null`);
|
||||||
|
|
||||||
@@ -42,7 +43,6 @@ else {
|
|||||||
# so we need to specify --lock-wait-timeout=3 else the tool will die.
|
# so we need to specify --lock-wait-timeout=3 else the tool will die.
|
||||||
# And --max-load "" prevents waiting for status variables.
|
# And --max-load "" prevents waiting for status variables.
|
||||||
my $master_dsn = 'h=127.1,P=12348,u=msandbox,p=msandbox';
|
my $master_dsn = 'h=127.1,P=12348,u=msandbox,p=msandbox';
|
||||||
my $slave_dnn = 'P=12349';
|
|
||||||
my @args = ($master_dsn, qw(--lock-wait-timeout 3), '--max-load', '');
|
my @args = ($master_dsn, qw(--lock-wait-timeout 3), '--max-load', '');
|
||||||
my $output;
|
my $output;
|
||||||
my $retval;
|
my $retval;
|
||||||
@@ -67,6 +67,7 @@ is(
|
|||||||
# #############################################################################
|
# #############################################################################
|
||||||
# Done.
|
# Done.
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
|
diag('Shutting down sandboxes');
|
||||||
diag(`$trunk/sandbox/stop-sandbox 12349 >/dev/null`);
|
diag(`$trunk/sandbox/stop-sandbox 12349 >/dev/null`);
|
||||||
diag(`$trunk/sandbox/stop-sandbox 12348 >/dev/null`);
|
diag(`$trunk/sandbox/stop-sandbox 12348 >/dev/null`);
|
||||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||||
|
Reference in New Issue
Block a user