ryantimwilson / rpms / systemd

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