From a629020a9b1a808f2d3e08ac09f416b25c31d373 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 11 May 2022 16:13:52 -0700 Subject: [PATCH] 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 --- lib/installedtest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/installedtest.pm b/lib/installedtest.pm index 1f0d5955..2c5e7702 100644 --- a/lib/installedtest.pm +++ b/lib/installedtest.pm @@ -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; }