Fix t/pt-agent/schedule_services.t.

This commit is contained in:
Daniel Nichter
2013-01-30 16:55:42 -07:00
parent 07da85bb75
commit a8da9c268a

View File

@@ -47,7 +47,7 @@ my $svc0 = Percona::WebAPI::Resource::Service->new(
# First add a fake line so we can know that the real, existing # First add a fake line so we can know that the real, existing
# crontab is used and not clobbered. # crontab is used and not clobbered.
my ($fh, $file) = tempfile(); my ($fh, $file) = tempfile();
print {$fh} "* 0 * * * date > /dev/null"; print {$fh} "* 0 * * * date > /dev/null\n";
close $fh or warn "Cannot close $file: $OS_ERROR"; close $fh or warn "Cannot close $file: $OS_ERROR";
my $output = `crontab $file 2>&1`; my $output = `crontab $file 2>&1`;
@@ -55,7 +55,7 @@ $crontab = `crontab -l 2>&1`;
is( is(
$crontab, $crontab,
"* 0 * * * date > /dev/null", "* 0 * * * date > /dev/null\n",
"Set other crontab line" "Set other crontab line"
) or diag($output); ) or diag($output);