test: enable debug logging of systemd-oomd

This commit is contained in:
Yu Watanabe 2021-07-03 02:04:31 +09:00
parent f127fed75d
commit b7674ab206

View file

@ -23,6 +23,16 @@ rm -rf /etc/systemd/system/testsuite-55-testbloat.service.d
echo "DefaultMemoryPressureDurationSec=5s" >>/etc/systemd/oomd.conf
mkdir -p /etc/systemd/system/systemd-oomd.service.d/
echo -e "[Service]\nEnvironment=SYSTEMD_LOG_LEVEL=debug" >/etc/systemd/system/systemd-oomd.service.d/debug.conf
systemctl daemon-reload
# if oomd is already running for some reasons, then restart it to make sure the above settings to be applied
if systemctl is-active systemd-oomd.service; then
systemctl restart systemd-oomd.service
fi
systemctl start testsuite-55-testchill.service
systemctl start testsuite-55-testbloat.service