From 3947feb4b0da9c246b1658c48c5a365a14dac021 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 23 Feb 2021 14:09:10 +0100 Subject: test: ignore named hierarchies for cgroups=split ignore named hierarchies for the --cgroups=split test as crun does not set it. Closes: https://github.com/containers/podman/pull/9302#issuecomment-784157272 Signed-off-by: Giuseppe Scrivano --- test/e2e/run_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/e2e') diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index c28086fe8..f0ba9d1d9 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -1228,9 +1228,10 @@ USER mail` for _, line := range lines { parts := strings.SplitN(line, ":", 3) if !CGROUPSV2 { - // ignore unified on cgroup v1 + // ignore unified on cgroup v1. // both runc and crun do not set it. - if parts[1] == "" { + // crun does not set named hierarchies. + if parts[1] == "" || strings.Contains(parts[1], "name=") { continue } } -- cgit v1.2.3-54-g00ecf