From 6acbb3f2fb234d9903c15571472d95afee9d08c1 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 17 Jun 2023 00:06:38 +0100 Subject: [PATCH] TEST-55-OOMD: improve ephemeral configuration readability --- test/units/testsuite-55.sh | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) 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 <