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 <ulyssessouza@gmail.com>
This commit is contained in:
Ulysses Souza 2020-06-08 16:41:59 +02:00
parent bff44e6943
commit afabfbdf8d
1 changed files with 3 additions and 0 deletions

View File

@ -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,