summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2021-04-27 10:22:56 -0400
committerChris Evich <cevich@redhat.com>2021-04-27 10:28:09 -0400
commit7e90bcbb9a8aad678f0deb156889ec5375a40de8 (patch)
tree48a9a76fbb14291d12ad562f8a1e24966fbe9aeb /test/e2e
parent3148e01651e939f345242d582d82a068d1c6dd7e (diff)
downloadpodman-7e90bcbb9a8aad678f0deb156889ec5375a40de8.tar.gz
podman-7e90bcbb9a8aad678f0deb156889ec5375a40de8.tar.bz2
podman-7e90bcbb9a8aad678f0deb156889ec5375a40de8.zip
Skip blkio-weight test when no kernel BFQ support
Namely the Ubuntu 21.04 Kernel does not support BFQ. Regardless of the distro. skip this test if the required cgroup node doesn't exist. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 93505d742..74bdfce2c 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -582,6 +582,9 @@ USER bin`, BB)
if _, err := os.Stat("/sys/fs/cgroup/io.stat"); os.IsNotExist(err) {
Skip("Kernel does not have io.stat")
}
+ if _, err := os.Stat("/sys/fs/cgroup/system.slice/io.bfq.weight"); os.IsNotExist(err) {
+ Skip("Kernel does not support BFQ IO scheduler")
+ }
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))