mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-22 10:23:09 +00:00
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:
parent
763ef5d48f
commit
a629020a9b
@ -83,7 +83,7 @@ sub post_fail_hook {
|
|||||||
script_run 'printf "\n** NETWORKMANAGER.SERVICE STATUS **\n" > /dev/' . $serialdev;
|
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 "systemctl --no-pager -l status NetworkManager.service > /dev/${serialdev} 2>&1";
|
||||||
script_run 'printf "\n** JOURNAL **\n" > /dev/' . $serialdev;
|
script_run 'printf "\n** JOURNAL **\n" > /dev/' . $serialdev;
|
||||||
script_run "journalctl -b --no-pager > /dev/${serialdev}";
|
script_run "journalctl --no-pager > /dev/${serialdev}";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user