瀏覽代碼

Expect failure of `test_create_container_with_blkio_config`

On Linux kernel >= 5.3.x at least the daemon prints 2 warnings:
"Your kernel does not support cgroup blkio weight"
"Your kernel does not support cgroup blkio weight_device"

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza 5 年之前
父節點
當前提交
7b84b66b0b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/integration/service_test.py

+ 3 - 0
tests/integration/service_test.py

@@ -223,6 +223,9 @@ class ServiceTest(DockerClientTestCase):
         service.start_container(container)
         assert container.get('HostConfig.ReadonlyRootfs') == read_only
 
+    @pytest.mark.xfail(True, reason='Getting "Your kernel does not support '
+                                    'cgroup blkio weight and weight_device" on daemon start '
+                                    'on Linux kernel 5.3.x')
     def test_create_container_with_blkio_config(self):
         blkio_config = {
             'weight': 300,