From 1c873c7da8b5fddf02d512826ab7f728fc0b6111 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 17 Mar 2021 16:38:27 +0100 Subject: test: simplify cgroup path with cgroup v2, the cgroupns is enabled by default. Signed-off-by: Giuseppe Scrivano --- test/e2e/run_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 0ec4edbab..be2fb926f 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -585,7 +585,7 @@ USER bin` } if CGROUPSV2 { // convert linearly from [10-1000] to [1-10000] - session := podmanTest.Podman([]string{"run", "--rm", "--blkio-weight=15", ALPINE, "sh", "-c", "cat /sys/fs/cgroup/$(sed -e 's|0::||' < /proc/self/cgroup)/io.bfq.weight"}) + session := podmanTest.Podman([]string{"run", "--rm", "--blkio-weight=15", ALPINE, "sh", "-c", "cat /sys/fs/cgroup/io.bfq.weight"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) Expect(session.OutputToString()).To(ContainSubstring("51")) -- cgit v1.2.3-54-g00ecf