diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-12-20 10:40:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 10:40:03 -0800 |
commit | fa998f224fb7aa15d85b09dfdc4491dc09c9e390 (patch) | |
tree | e7dbbe1a7078e7586306881b8d7956afca2a4153 /test/e2e/run_test.go | |
parent | 65c5883f5c887c567bf0db30af1e178ac052261c (diff) | |
parent | 1f3726f2cf9ee4fcdb6c78dd2858e6c6bf135b05 (diff) | |
download | podman-fa998f224fb7aa15d85b09dfdc4491dc09c9e390.tar.gz podman-fa998f224fb7aa15d85b09dfdc4491dc09c9e390.tar.bz2 podman-fa998f224fb7aa15d85b09dfdc4491dc09c9e390.zip |
Merge pull request #2037 from baude/blkioskip
skip test for blkio.weight when kernel does not support it
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 2104991b2..d73d8662f 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -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)) |