1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-11 20:58:27 +03:00

test: Set kernel loglevel to INFO when running tests unattended

This makes sure all kernel log messages are logged to the console.
This should be helpful during shutdown to detect possible issues with
journald when the logs can't be written to the journal itself anymore
but are written to kmsg.

(cherry picked from commit 8f51cf69814fc59be0ee4a1a18e8cd068559409f)
This commit is contained in:
Daan De Meyer 2024-12-06 15:13:16 +01:00 committed by Luca Boccassi
parent e53881298b
commit 3258c268ad

View File

@ -169,6 +169,7 @@ def main() -> None:
'systemd.show_status=error', 'systemd.show_status=error',
'systemd.crash_shell=0', 'systemd.crash_shell=0',
'systemd.crash_action=poweroff', 'systemd.crash_action=poweroff',
'loglevel=6',
] ]
if not sys.stderr.isatty() if not sys.stderr.isatty()
else [] else []