From: Luca Boccassi Date: Wed, 24 Feb 2021 13:29:57 +0000 (+0000) Subject: test: skip TEST-56-OOMD if systemd-oomd is not installed X-Git-Tag: v248-rc3~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04153c4509c60594b96d5aa53fdcb8c72fdbe04d;p=thirdparty%2Fsystemd.git test: skip TEST-56-OOMD if systemd-oomd is not installed Fixes #18775 --- diff --git a/test/units/testsuite-56.sh b/test/units/testsuite-56.sh index 1884f814689..6835802eb8f 100755 --- a/test/units/testsuite-56.sh +++ b/test/units/testsuite-56.sh @@ -11,6 +11,9 @@ cgroup_type=$(stat -fc %T /sys/fs/cgroup/) if [[ "$cgroup_type" != *"cgroup2"* ]] && [[ "$cgroup_type" != *"0x63677270"* ]]; then echo "no cgroup2" >> /skipped fi +if [ ! -f /usr/lib/systemd/systemd-oomd ] && [ ! -f /lib/systemd/systemd-oomd ]; then + echo "no oomd" >> /skipped +fi [[ -e /skipped ]] && exit 0 || true rm -rf /etc/systemd/system/testsuite-56-testbloat.service.d