diff --git a/tests/integration/helpers.bash b/tests/integration/helpers.bash index a35ec62d71e..bd63ff25efa 100644 --- a/tests/integration/helpers.bash +++ b/tests/integration/helpers.bash @@ -150,7 +150,7 @@ function init_cgroup_paths() { CGROUP_UNIFIED=no CGROUP_SUBSYSTEMS=$(awk '!/^#/ {print $1}' /proc/cgroups) for g in ${CGROUP_SUBSYSTEMS}; do - base_path=$(gawk '$(NF-2) == "cgroup" && $NF ~ /\<'${g}'\>/ { print $5; exit }' /proc/self/mountinfo) + base_path=$(gawk '$(NF-2) == "cgroup" && $NF ~ /\<'${g}'\>/ { print $5'${RUNC_USE_SYSTEMD+\$4}'; exit }' /proc/self/mountinfo) test -z "$base_path" && continue eval CGROUP_${g^^}_BASE_PATH="${base_path}" eval CGROUP_${g^^}="${base_path}${REL_CGROUPS_PATH}"