From: Frantisek Sumsal Date: Tue, 1 Feb 2022 19:25:00 +0000 (+0100) Subject: test: require unified cgroup hierarchy for TEST-56 X-Git-Tag: v251-rc1~382^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22351%2Fhead;p=thirdparty%2Fsystemd.git test: require unified cgroup hierarchy for TEST-56 since cgroup empty notifications are unreliable in legacy cgroups. See: systemd/systemd#22320 Complements: systemd/systemd#22344 --- diff --git a/test/TEST-56-EXIT-TYPE/test.sh b/test/TEST-56-EXIT-TYPE/test.sh index 0f84dca1ba6..37475e817e1 100755 --- a/test/TEST-56-EXIT-TYPE/test.sh +++ b/test/TEST-56-EXIT-TYPE/test.sh @@ -6,4 +6,9 @@ TEST_DESCRIPTION="test ExitType=cgroup" # shellcheck source=test/test-functions . "${TEST_BASE_DIR:?}/test-functions" +if [[ "$(get_cgroup_hierarchy)" != unified ]]; then + echo "This test requires unified cgroup hierarchy, skipping..." + exit 0 +fi + do_test "$@"