summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-08-13 00:14:54 +0200
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2020-05-18 19:35:19 +0200
commitc8e3d9e23d99f2f0f01bd5f367f6bce37d2f04b9 (patch)
tree3ac4f04b34be8a9e0da915e34ccb269e0c4c9c9e
parentc83025b14c1ec1aead2e6940e023c098ccc8fa9c (diff)
downloadsystemd-c8e3d9e23d99f2f0f01bd5f367f6bce37d2f04b9.tar.gz
test: store coredumps in journal
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. (cherry picked from commit 215bffe1b8d7cb72fe9f72ed53682d52d5c2a9c5) (cherry picked from commit cac1e15554b8e3f102e00ac802cff7100b1def22) Resolves: #1836979
-rw-r--r--test/test-functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index 3f1c327f3c..7c4230b078 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -420,6 +420,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() {