1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00
systemd/test/TEST-56-EXIT-TYPE/test.sh
Frantisek Sumsal e262082018 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
2022-02-01 22:13:48 +01:00

15 lines
296 B
Bash
Executable File

#!/usr/bin/env bash
set -e
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 "$@"