From afabfbdf8df8be652ad512c12341613b26c87960 Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Mon, 8 Jun 2020 16:41:59 +0200 Subject: [PATCH] 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 --- tests/integration/service_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/service_test.py b/tests/integration/service_test.py index 01e2e1d22..765a2ced1 100644 --- a/tests/integration/service_test.py +++ b/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,