diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/testsuite-56.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/units/testsuite-56.sh b/test/units/testsuite-56.sh index 1846248855..6e7941a57f 100755 --- a/test/units/testsuite-56.sh +++ b/test/units/testsuite-56.sh @@ -14,12 +14,15 @@ if [[ "$cgroup_type" != *"cgroup2"* ]] && [[ "$cgroup_type" != *"0x63677270"* ]] fi [[ -e /skipped ]] && exit 0 || true +echo "DefaultMemoryPressureDurationSec=5s" >> /etc/systemd/oomd.conf + systemctl start testsuite-56-testbloat.service systemctl start testsuite-56-testchill.service # Verify systemd-oomd is monitoring the expected units oomctl | grep "/testsuite-56-workload.slice" oomctl | grep "1%" +oomctl | grep "Default Memory Pressure Duration: 5s" # systemd-oomd watches for elevated pressure for 30 seconds before acting. # It can take time to build up pressure so either wait 5 minutes or for the service to fail. |