mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 07:30:02 +00:00
pt-osc: Make --quiet behave like in the other tools
This commit is contained in:
@@ -9,7 +9,7 @@ BEGIN {
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More tests => 8;
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
@@ -51,6 +51,19 @@ like(
|
||||
"--execute FALSE by default"
|
||||
);
|
||||
|
||||
like(
|
||||
$output,
|
||||
qr/--quiet\s+0/,
|
||||
"--quiet is 0 by default",
|
||||
);
|
||||
|
||||
$output = `$cmd --quiet --quiet --help`;
|
||||
like(
|
||||
$output,
|
||||
qr/--quiet\s+2/,
|
||||
"--quiet is cummulative",
|
||||
);
|
||||
|
||||
$output = `$cmd h=127.1,P=12345,u=msandbox,p=msandbox --alter-foreign-keys-method drop_swap --no-drop-new-table`;
|
||||
like(
|
||||
$output,
|
||||
@@ -75,4 +88,4 @@ like(
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
exit;
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user