aboutsummaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-03-17 16:38:27 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-03-17 16:39:40 +0100
commit1c873c7da8b5fddf02d512826ab7f728fc0b6111 (patch)
tree3685fb7ef761d7f70806c7f05ed9bbebc669c437 /test/e2e
parentaf3499db5a91aa6c09a3ba892a8921a5ece6e5ed (diff)
downloadpodman-1c873c7da8b5fddf02d512826ab7f728fc0b6111.tar.gz
podman-1c873c7da8b5fddf02d512826ab7f728fc0b6111.tar.bz2
podman-1c873c7da8b5fddf02d512826ab7f728fc0b6111.zip
test: simplify cgroup path
with cgroup v2, the cgroupns is enabled by default. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_test.go2
1 files changed, 1 insertions, 1 deletions
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"))