152484
From 523e72e97d7c945114b54b726eaab0d379fb35fb Mon Sep 17 00:00:00 2001
152484
From: Frantisek Sumsal <frantisek@sumsal.cz>
152484
Date: Tue, 1 Feb 2022 20:25:00 +0100
152484
Subject: [PATCH] test: require unified cgroup hierarchy for TEST-56
152484
152484
since cgroup empty notifications are unreliable in legacy cgroups.
152484
152484
See: systemd/systemd#22320
152484
Complements: systemd/systemd#22344
152484
(cherry picked from commit e2620820188428de7086f5e8ac41305177f70954)
152484
152484
Related: #2047768
152484
---
152484
 test/TEST-56-EXIT-TYPE/test.sh | 5 +++++
152484
 1 file changed, 5 insertions(+)
152484
152484
diff --git a/test/TEST-56-EXIT-TYPE/test.sh b/test/TEST-56-EXIT-TYPE/test.sh
152484
index 0f84dca1ba..37475e817e 100755
152484
--- a/test/TEST-56-EXIT-TYPE/test.sh
152484
+++ b/test/TEST-56-EXIT-TYPE/test.sh
152484
@@ -6,4 +6,9 @@ TEST_DESCRIPTION="test ExitType=cgroup"
152484
 # shellcheck source=test/test-functions
152484
 . "${TEST_BASE_DIR:?}/test-functions"
152484
 
152484
+if [[ "$(get_cgroup_hierarchy)" != unified ]]; then
152484
+    echo "This test requires unified cgroup hierarchy, skipping..."
152484
+    exit 0
152484
+fi
152484
+
152484
 do_test "$@"