c2dfb7
From 8df2d39a562416e1218e3ff191f3f3af1f9d4844 Mon Sep 17 00:00:00 2001
c2dfb7
From: Frantisek Sumsal <frantisek@sumsal.cz>
c2dfb7
Date: Tue, 13 Aug 2019 00:14:54 +0200
c2dfb7
Subject: [PATCH] test: store coredumps in journal
c2dfb7
c2dfb7
To make debugging much easier, especially for crashes in tests under
c2dfb7
QEMU, let's store the entire coredump bundle in the systemd journal,
c2dfb7
which is usually kept around by various CIs. Right now, we usually end
c2dfb7
up with a journal, but without the coredump itself, which is pretty
c2dfb7
useless.
c2dfb7
c2dfb7
(cherry picked from commit 215bffe1b8d7cb72fe9f72ed53682d52d5c2a9c5)
c2dfb7
c2dfb7
Related: #1823767
c2dfb7
---
c2dfb7
 test/test-functions | 2 ++
c2dfb7
 1 file changed, 2 insertions(+)
c2dfb7
c2dfb7
diff --git a/test/test-functions b/test/test-functions
c2dfb7
index 3f1c327f3c..7c4230b078 100644
c2dfb7
--- a/test/test-functions
c2dfb7
+++ b/test/test-functions
c2dfb7
@@ -420,6 +420,8 @@ install_systemd() {
c2dfb7
 
c2dfb7
     # enable debug logging in PID1
c2dfb7
     echo LogLevel=debug >> $initdir/etc/systemd/system.conf
c2dfb7
+    # store coredumps in journal
c2dfb7
+    echo Storage=journal >> $initdir/etc/systemd/coredump.conf
c2dfb7
 }
c2dfb7
 
c2dfb7
 get_ldpath() {