anitazha / rpms / systemd

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