mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-03 11:05:48 +00:00
Change mk_tool::main() to pt_tool::main() in all tests.
This commit is contained in:
@@ -40,7 +40,7 @@ diag(`/tmp/12345/use -u root -e "GRANT USAGE ON *.* TO 'bob'\@'localhost'"`);
|
||||
diag(`/tmp/12345/use -u root -e "GRANT USAGE ON *.* TO 'bob'\@'192.168.1.1'"`);
|
||||
|
||||
$output = output(
|
||||
sub { mk_show_grants::main('-F', $cnf, qw(--only bob --no-header)); }
|
||||
sub { pt_show_grants::main('-F', $cnf, qw(--only bob --no-header)); }
|
||||
);
|
||||
is(
|
||||
$output,
|
||||
@@ -55,7 +55,7 @@ GRANT USAGE ON *.* TO 'bob'\@'localhost';
|
||||
);
|
||||
|
||||
$output = output(
|
||||
sub { mk_show_grants::main('-F', $cnf, qw(--only bob@192.168.1.1 --no-header)); }
|
||||
sub { pt_show_grants::main('-F', $cnf, qw(--only bob@192.168.1.1 --no-header)); }
|
||||
);
|
||||
is(
|
||||
$output,
|
||||
|
@@ -32,7 +32,7 @@ my $output;
|
||||
my $cnf = '/tmp/12345/my.sandbox.cnf';
|
||||
|
||||
$output = output(
|
||||
sub { mk_show_grants::main('-F', $cnf, qw(--drop --flush --revoke --separate)); }
|
||||
sub { pt_show_grants::main('-F', $cnf, qw(--drop --flush --revoke --separate)); }
|
||||
);
|
||||
like(
|
||||
$output,
|
||||
@@ -68,7 +68,7 @@ like(
|
||||
|
||||
|
||||
$output = output(
|
||||
sub { mk_show_grants::main('-F', $cnf, qw(--no-timestamp --drop --flush --revoke --separate)); }
|
||||
sub { pt_show_grants::main('-F', $cnf, qw(--no-timestamp --drop --flush --revoke --separate)); }
|
||||
);
|
||||
unlike(
|
||||
$output,
|
||||
@@ -77,7 +77,7 @@ unlike(
|
||||
);
|
||||
|
||||
$output = output(
|
||||
sub { mk_show_grants::main('-F', $cnf, '--ignore', 'baron,msandbox,root,root@localhost,user'); }
|
||||
sub { pt_show_grants::main('-F', $cnf, '--ignore', 'baron,msandbox,root,root@localhost,user'); }
|
||||
);
|
||||
unlike(
|
||||
$output,
|
||||
|
@@ -44,7 +44,7 @@ like(
|
||||
|
||||
eval {
|
||||
$output = output(
|
||||
sub { mk_show_grants::main('-F', $cnf, '--revoke'); }
|
||||
sub { pt_show_grants::main('-F', $cnf, '--revoke'); }
|
||||
);
|
||||
};
|
||||
is(
|
||||
|
Reference in New Issue
Block a user