mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Change mk_tool::main() to pt_tool::main() in all tests.
This commit is contained in:
@@ -48,7 +48,7 @@ $output = `$cmd -D test --monitor --run-time 1s --no-insert-heartbeat-row 2>&1`;
|
||||
like($output, qr/heartbeat table is empty/ms, 'Dies on empty heartbeat table with --monitor (issue 45)');
|
||||
|
||||
$output = output(
|
||||
sub { mk_heartbeat::main('-F', $cnf, qw(-D test --check)) },
|
||||
sub { pt_heartbeat::main('-F', $cnf, qw(-D test --check)) },
|
||||
);
|
||||
my $row = $dbh->selectall_hashref('select * from test.heartbeat', 'id');
|
||||
is(
|
||||
|
@@ -189,7 +189,7 @@ is(
|
||||
# First, the option should be optional. If not given, the server's
|
||||
# immediate master should be used.
|
||||
$output = output(
|
||||
sub { mk_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
sub { pt_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
qw(-D test --check --print-master-server-id)) },
|
||||
);
|
||||
|
||||
@@ -200,7 +200,7 @@ like(
|
||||
);
|
||||
|
||||
$output = output(
|
||||
sub { mk_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
sub { pt_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
qw(-D test --check --print-master-server-id --master-server-id 12346)) },
|
||||
);
|
||||
|
||||
@@ -211,7 +211,7 @@ like(
|
||||
);
|
||||
|
||||
$output = output(
|
||||
sub { mk_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
sub { pt_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
qw(-D test --check --print-master-server-id --master-server-id 12345)) },
|
||||
);
|
||||
|
||||
@@ -222,7 +222,7 @@ like(
|
||||
);
|
||||
|
||||
$output = output(
|
||||
sub { mk_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
sub { pt_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
|
||||
qw(-D test --check --print-master-server-id --master-server-id 42),
|
||||
qw(--no-insert-heartbeat-row)) },
|
||||
);
|
||||
|
Reference in New Issue
Block a user