Add another test to verify collect.

This commit is contained in:
Daniel Nichter
2012-02-16 13:40:41 -07:00
parent cd17a20119
commit c0e016e9d1

View File

@@ -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,