]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: skip TEST-56-OOMD if systemd-oomd is not installed
authorLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 24 Feb 2021 13:29:57 +0000 (13:29 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Feb 2021 14:02:07 +0000 (15:02 +0100)
Fixes #18775

test/units/testsuite-56.sh

index 1884f814689ab9358b3e4ac0c6fa9dea22c6bc9c..6835802eb8f5c13bf0832299f15f3b0d20c52213 100755 (executable)
@@ -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