]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: require unified cgroup hierarchy for TEST-56 22351/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 1 Feb 2022 19:25:00 +0000 (20:25 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 1 Feb 2022 21:13:48 +0000 (22:13 +0100)
since cgroup empty notifications are unreliable in legacy cgroups.

See: systemd/systemd#22320
Complements: systemd/systemd#22344

test/TEST-56-EXIT-TYPE/test.sh

index 0f84dca1ba66e5a1e4f9a27ce2f0b511a9ccd687..37475e817e1028a67d27cb9bdaec9290bf728203 100755 (executable)
@@ -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 "$@"