Fix pytest fixtures for skipping docker

Change-Id: Id90fe8b2cc0e5f8351ed23610641a025dcf73817
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-01-20 17:04:07 -05:00
parent 96ac665eaa
commit 5d6af4997a

View File

@ -22,6 +22,6 @@ def platform_docker(host):
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
def skip_platform_docker(request, platform_docker): def skip_platform_docker(request, platform_docker):
marker = request.node.get_marker('skip_if_docker') marker = request.node.get_closest_marker('skip_if_docker')
if marker and platform_docker: if marker and platform_docker:
pytest.skip('Skipping docker') pytest.skip('Skipping docker')