Change mk_tool::main() to pt_tool::main() in all tests.

This commit is contained in:
Daniel Nichter
2011-06-29 11:56:49 -06:00
parent fd0941534a
commit 8e11cd85b3
112 changed files with 357 additions and 357 deletions

View File

@@ -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(

View File

@@ -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)) },
);