From f92057aa1e92874b332f34065d540095f3302ca2 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 17 Apr 2023 10:41:06 -0700 Subject: [PATCH] tests/int: update set_cgroups_path doc Signed-off-by: Kir Kolyshkin --- tests/integration/helpers.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/integration/helpers.bash b/tests/integration/helpers.bash index b5f2158f1..e1ce42144 100755 --- a/tests/integration/helpers.bash +++ b/tests/integration/helpers.bash @@ -184,7 +184,12 @@ function set_parent_systemd_properties() { } # Randomize cgroup path(s), and update cgroupsPath in config.json. -# This function sets a few cgroup-related variables. +# This function also sets a few cgroup-related variables that are used +# by other cgroup-related functions. +# +# If this function is not called (and cgroupsPath is not set in config), +# runc uses default container's cgroup path derived from the container's name +# (except for rootless containers, that have no default cgroup path). # # Optional parameter $1 is a pod/parent name. If set, a parent/pod cgroup is # created, and variables $REL_PARENT_PATH and $SD_PARENT_NAME can be used to