mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 06:00:14 +00:00
Add another test to verify collect.
This commit is contained in:
@@ -24,7 +24,7 @@ if ( !$dbh ) {
|
|||||||
plan skip_all => 'Cannot connect to sandbox master';
|
plan skip_all => 'Cannot connect to sandbox master';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plan tests => 24;
|
plan tests => 25;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $cnf = "/tmp/12345/my.sandbox.cnf";
|
my $cnf = "/tmp/12345/my.sandbox.cnf";
|
||||||
@@ -263,6 +263,12 @@ is(
|
|||||||
"Not stalking, collect ran for --run-time"
|
"Not stalking, collect ran for --run-time"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
is(
|
||||||
|
`cat $dest/nostalk-hostname`,
|
||||||
|
`hostname`,
|
||||||
|
"Not stalking, collect gathered data"
|
||||||
|
);
|
||||||
|
|
||||||
$output = `ps x | grep -v grep | grep 'pt-stalk --no-stalk'`;
|
$output = `ps x | grep -v grep | grep 'pt-stalk --no-stalk'`;
|
||||||
is(
|
is(
|
||||||
$output,
|
$output,
|
||||||
|
Reference in New Issue
Block a user