From f7156d912eb06f9422cf1fa695c09db8e615359c Mon Sep 17 00:00:00 2001 From: lifubang Date: Wed, 10 Mar 2021 13:11:12 +0800 Subject: [PATCH] fix systemd cgroup path error in integration test Signed-off-by: lifubang --- tests/integration/helpers.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"