Fix/update t/pt-agent/run_agent.t.

This commit is contained in:
Daniel Nichter
2013-03-19 14:56:53 -06:00
parent 70c28272a7
commit 9afa462cc2
3 changed files with 10 additions and 9 deletions

View File

@@ -4892,7 +4892,7 @@ sub make_new_crontab {
my @other_lines
= grep { $_ !~ m/pt-agent (?:--run-service|--send-data)/ }
split("\n", $crontab_list);
PTDEBUG && _d('Other crontab lines:', \@other_lines);
PTDEBUG && _d('Other crontab lines:', Dumper(\@other_lines));
my @pt_agent_lines;
foreach my $service ( @$services ) {
@@ -4907,7 +4907,7 @@ sub make_new_crontab {
. $service->name;
}
}
PTDEBUG && _d('pt-agent crontab lines:', \@pt_agent_lines);
PTDEBUG && _d('pt-agent crontab lines:', Dumper(\@pt_agent_lines));
my $new_crontab = join("\n", @other_lines, @pt_agent_lines) . "\n";