mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +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';
|
||||
}
|
||||
else {
|
||||
plan tests => 24;
|
||||
plan tests => 25;
|
||||
}
|
||||
|
||||
my $cnf = "/tmp/12345/my.sandbox.cnf";
|
||||
@@ -263,6 +263,12 @@ is(
|
||||
"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'`;
|
||||
is(
|
||||
$output,
|
||||
|
Reference in New Issue
Block a user