post_fail_hook serial path: log the entire journal

When we're logging via the serial console when a test fails and
no network is available, we only log the journal from the current
boot. But we might well need to see messages from previous boots.
So let's just log the whole journal.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-05-11 16:13:52 -07:00
parent 763ef5d48f
commit a629020a9b
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ sub post_fail_hook {
script_run 'printf "\n** NETWORKMANAGER.SERVICE STATUS **\n" > /dev/' . $serialdev;
script_run "systemctl --no-pager -l status NetworkManager.service > /dev/${serialdev} 2>&1";
script_run 'printf "\n** JOURNAL **\n" > /dev/' . $serialdev;
script_run "journalctl -b --no-pager > /dev/${serialdev}";
script_run "journalctl --no-pager > /dev/${serialdev}";
return;
}