From c0e016e9d1c6bf24514819228a178e93d66fbb96 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Thu, 16 Feb 2012 13:40:41 -0700 Subject: [PATCH] Add another test to verify collect. --- t/pt-stalk/pt-stalk.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/pt-stalk/pt-stalk.t b/t/pt-stalk/pt-stalk.t index 907daca9..7e44dea8 100644 --- a/t/pt-stalk/pt-stalk.t +++ b/t/pt-stalk/pt-stalk.t @@ -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,