Blame SOURCES/0364-test-store-coredumps-in-journal.patch
|
|
be3800 |
From c8e3d9e23d99f2f0f01bd5f367f6bce37d2f04b9 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 |
(cherry picked from commit cac1e15554b8e3f102e00ac802cff7100b1def22)
|
|
|
be3800 |
|
|
|
be3800 |
Resolves: #1836979
|
|
|
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() {
|