From: Luca Boccassi Date: Fri, 16 Jun 2023 23:06:38 +0000 (+0100) Subject: TEST-55-OOMD: improve ephemeral configuration readability X-Git-Tag: v254-rc1~184^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F28063%2Fhead;p=thirdparty%2Fsystemd.git TEST-55-OOMD: improve ephemeral configuration readability --- diff --git a/test/units/testsuite-55.sh b/test/units/testsuite-55.sh index 4503553eac2..1433e79c5b9 100755 --- a/test/units/testsuite-55.sh +++ b/test/units/testsuite-55.sh @@ -26,14 +26,29 @@ rm -rf /run/systemd/system/testsuite-55-testbloat.service.d # Configure oomd explicitly to avoid conflicts with distro dropins mkdir -p /run/systemd/oomd.conf.d/ -echo -e "[OOM]\nDefaultMemoryPressureDurationSec=2s" >/run/systemd/oomd.conf.d/99-oomd-test.conf +cat >/run/systemd/oomd.conf.d/99-oomd-test.conf </run/systemd/system/-.slice.d/99-oomd-test.conf +cat >/run/systemd/system/-.slice.d/99-oomd-test.conf </run/systemd/system/user@.service.d/99-oomd-test.conf +cat >/run/systemd/system/user@.service.d/99-oomd-test.conf </run/systemd/system/systemd-oomd.service.d/debug.conf +cat >/run/systemd/system/systemd-oomd.service.d/debug.conf </run/systemd/system/testsuite-55-testbloat.service.d/override.conf - echo "ManagedOOMPreference=avoid" >>/run/systemd/system/testsuite-55-testbloat.service.d/override.conf + cat >/run/systemd/system/testsuite-55-testbloat.service.d/override.conf <