Skip to content

Commit

Permalink
Fix journalctl parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Jun 26, 2024
1 parent 535b781 commit 7e5a513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/author/bulk_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
} else {
warn "Firefox Nightly PASSED successfully\n";
}
my $start_time_for_journalctl = POSIX::strftime('%Y/%m/%d %H:%M:%S', localtime $start_time);
my $start_time_for_journalctl = POSIX::strftime('%Y-%m-%d %H:%M:%S', localtime $start_time);
my $ssh_auth_cmd = 'ssh-auth-cmd-marionette';
my $journalctl_handle = FileHandle->new();
if (my $pid = $journalctl_handle->open(q[-|])) {
Expand All @@ -577,15 +577,15 @@
warn "Total number of lines generated by $ssh_auth_cmd is $count\n";
} elsif (defined $pid) {
eval {
exec { 'journalctl' } 'journalctl', '-t', 'ssh-auth-cmd-marionette', '--since', $start_time_for_journalctl or die "Failed to exec 'journalctl':$EXTENDED_OS_ERROR";
exec { 'journalctl' } 'journalctl', '-t', 'ssh-auth-cmd-marionette', '--since', $start_time_for_journalctl, '--quiet' or die "Failed to exec 'journalctl':$EXTENDED_OS_ERROR";
} or do {
warn "Failed to execute 'journalctl':$EVAL_ERROR";
};
exit 1;
} else {
die "Failed to fork:$EXTENDED_OS_ERROR";
}
system { 'journalctl' } 'journalctl', '-t', 'ssh-auth-cmd-marionette', '-p', 'warning', '--since', $start_time_for_journalctl or warn "Failed to journalctl";
system { 'journalctl' } 'journalctl', '-t', 'ssh-auth-cmd-marionette', '-p', 'warning', '--since', $start_time_for_journalctl, '--quiet' or warn "Failed to journalctl";
}

sub _get_best_local_ip_match { # this is pretty dodgy, but good enough for these type of tests
Expand Down

0 comments on commit 7e5a513

Please sign in to comment.