Fix pt-query-digest tests.

This commit is contained in:
Daniel Nichter
2012-02-01 11:27:18 -07:00
parent d3f23525e7
commit bacccfd431
2 changed files with 10 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ SKIP: {
my $cmd = "$trunk/bin/pt-query-digest --daemonize --pid /tmp/pt-query-digest.pid --processlist h=127.1,P=12345,u=msandbox,p=msandbox --log /dev/null";
`$cmd`;
$output = `ps -eaf | grep -v grep | grep pt-query-digest`;
$output = `ps x | grep 'pt-query-digest --daemonize --pid' | grep -v grep`;
like($output, qr/$cmd/, 'It is running');
ok(-f '/tmp/pt-query-digest.pid', 'PID file created');