Fix pt-query-digest mirror.t from previous merges.

This commit is contained in:
Daniel Nichter
2012-03-06 13:23:20 -07:00
parent b5160b4b71
commit df0f793815

View File

@@ -28,18 +28,14 @@ elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to sandbox slave'; plan skip_all => 'Cannot connect to sandbox slave';
} }
else { else {
plan tests => 3; plan tests => 4;
} }
my $output; my $output;
my $cmd; my $cmd;
my $pid_file = "/tmp/pt-query-digest-mirror-test.pid"; my $pid_file = "/tmp/pt-query-digest-mirror-test.pid";
diag(`rm $pid_file 2>/dev/null`); diag(`rm $pid_file 2>/dev/null`);
my $pid_file = '/tmp/pt-query-digest.test.pid';
`rm -rf $pid_file >/dev/null`;
# ########################################################################## # ##########################################################################
# Tests for swapping --processlist and --execute # Tests for swapping --processlist and --execute
# ########################################################################## # ##########################################################################
@@ -74,10 +70,9 @@ is(
'', '',
'It is stopped now' 'It is stopped now'
); );
=======
$output = `ps -p $output`; $output = `ps -p $pid`;
unlike($output, qr/pt-query-digest/, 'It is stopped now'); unlike($output, qr/pt-query-digest/, 'It is stopped now');
>>>>>>> MERGE-SOURCE
$output = `grep read_only /tmp/read_only.txt`; $output = `grep read_only /tmp/read_only.txt`;
# Sample output: # Sample output: