]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: store coredumps in journal
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 12 Aug 2019 22:14:54 +0000 (00:14 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 13 Aug 2019 07:09:57 +0000 (07:09 +0000)
To make debugging much easier, especially for crashes in tests under
QEMU, let's store the entire coredump bundle in the systemd journal,
which is usually kept around by various CIs. Right now, we usually end
up with a journal, but without the coredump itself, which is pretty
useless.

test/test-functions

index 6523db01b96e98f019c878e20f9fe22fbe03b53e..58685526c28efa607cf40cf3913199b6acd5c890 100644 (file)
@@ -516,6 +516,8 @@ install_systemd() {
 
     # enable debug logging in PID1
     echo LogLevel=debug >> $initdir/etc/systemd/system.conf
+    # store coredumps in journal
+    echo Storage=journal >> $initdir/etc/systemd/coredump.conf
 }
 
 get_ldpath() {