From: Luca Boccassi Date: Thu, 16 May 2024 10:03:42 +0000 (+0100) Subject: test: add coverate for Compress=yes config option X-Git-Tag: v256-rc3~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88e791171aaaa2484c0482a1e7c06ae8fd90e52a;p=thirdparty%2Fsystemd.git test: add coverate for Compress=yes config option Avoid regressions like https://github.com/systemd/systemd/issues/32856 Follow-up for 2ef7cdc4255883d1c50860661248c9db69a86aa1 --- diff --git a/test/units/TEST-04-JOURNAL.SYSTEMD_JOURNAL_COMPRESS.sh b/test/units/TEST-04-JOURNAL.SYSTEMD_JOURNAL_COMPRESS.sh index 96d096d9adf..6da9f5e4205 100755 --- a/test/units/TEST-04-JOURNAL.SYSTEMD_JOURNAL_COMPRESS.sh +++ b/test/units/TEST-04-JOURNAL.SYSTEMD_JOURNAL_COMPRESS.sh @@ -7,6 +7,12 @@ set -o pipefail mkdir /run/systemd/system/systemd-journald.service.d MACHINE_ID="$(/run/systemd/journald.conf.d/compress.conf +[Journal] +Compress=yes +EOF + # Reset the start-limit counters, as we're going to restart journald a couple of times systemctl reset-failed systemd-journald.service @@ -35,6 +41,7 @@ EOF fi done +rm /run/systemd/journald.conf.d/compress.conf rm /run/systemd/system/systemd-journald.service.d/compress.conf systemctl daemon-reload systemctl restart systemd-journald.service