skip cpu_percent test for Linux

Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
This commit is contained in:
Alexey Rokhin 2017-05-17 16:18:28 +03:00 committed by Joffrey F
parent e621117ab2
commit 56f63c8586
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ from compose.const import LABEL_ONE_OFF
from compose.const import LABEL_PROJECT
from compose.const import LABEL_SERVICE
from compose.const import LABEL_VERSION
from compose.const import IS_WINDOWS_PLATFORM
from compose.container import Container
from compose.errors import OperationFailedError
from compose.project import OneOffFilter
@ -120,6 +121,7 @@ class ServiceTest(DockerClientTestCase):
self.assertEqual(container.get('HostConfig.CpuCount'), 2)
@v2_2_only()
@pytest.mark.skipif(not IS_WINDOWS_PLATFORM, reason='cpu_percent is not supported for Linux')
def test_create_container_with_cpu_percent(self):
self.require_api_version('1.25')
service = self.create_service('db', cpu_percent=12)