mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-17 08:57:24 +00:00
Fix t/pt-agent/schedule_services.t.
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user