mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 05:44:59 +00:00
Test pt-ioprofile short op.
This commit is contained in:
@@ -24,7 +24,7 @@ if ( !$dbh ) {
|
||||
plan skip_all => "Cannot connect to master sandbox";
|
||||
}
|
||||
else {
|
||||
plan tests => 3;
|
||||
plan tests => 4;
|
||||
}
|
||||
|
||||
my $output = "";
|
||||
@@ -57,6 +57,16 @@ cmp_ok(
|
||||
"Runs for --run-time"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Short options.
|
||||
# #############################################################################
|
||||
$output = `$trunk/bin/pt-ioprofile --run-time 2 --b theprocname 2>&1`;
|
||||
like(
|
||||
$output,
|
||||
qr/Cannot determine PID of theprocname process/,
|
||||
"Short option -b (--profile-process)"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user