Merge pull request #2037 from baude/blkioskip

skip test for blkio.weight when kernel does not support it
This commit is contained in:
OpenShift Merge Robot
2018-12-20 10:40:03 -08:00
committed by GitHub
2 changed files with 15 additions and 12 deletions

View File

@ -253,6 +253,9 @@ var _ = Describe("Podman run", func() {
})
It("podman run blkio-weight test", func() {
if _, err := os.Stat("/sys/fs/cgroup/blkio/blkio.weight"); os.IsNotExist(err) {
Skip("Kernel does not support blkio.weight")
}
session := podmanTest.Podman([]string{"run", "--rm", "--blkio-weight=15", ALPINE, "cat", "/sys/fs/cgroup/blkio/blkio.weight"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))