]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: make TEST-08-INITRD slightly less annoying to debug
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 14 Feb 2024 15:45:18 +0000 (16:45 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 17 Feb 2024 11:49:44 +0000 (12:49 +0100)
Forward journal to console, since we won't have any journal from initrd
and shutdown/exit initrd phases. Also, mention
systemd.journald.max_level_console=debug that is very handy for
debugging initrd shenanigans, but don't use it by default since it
sends a _lot_ of stuff to the serial console, which slows down the test
a lot.

test/TEST-08-INITRD/test.sh

index caa27f69fdf5c5eb63ce5d1ca39831f32414d6c1..e8dbb2c36c61d2502e7447445b29325359cecf6c 100755 (executable)
@@ -3,6 +3,10 @@
 set -e
 
 TEST_DESCRIPTION="Test various scenarios involving transition from/to initrd"
+# Note: for debugging systemd.journald.max_level_console=debug might come in handy
+#       as well, but it's not used here since it's _very_ noisy and slows the test
+#       down a lot
+KERNEL_APPEND="${KERNEL_APPEND:-} systemd.journald.forward_to_console=1"
 TEST_NO_NSPAWN=1
 
 # shellcheck source=test/test-functions