From: Alfredo Deza Date: Thu, 31 Aug 2017 12:48:24 +0000 (-0400) Subject: tests conftest conditions the no_lvm_scenario marker X-Git-Tag: v3.0.0rc5~3^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53b1e1ba0814dfbb88cebc2953ce9026cc5b0105;p=ceph-ansible.git tests conftest conditions the no_lvm_scenario marker Signed-off-by: Alfredo Deza --- diff --git a/tests/conftest.py b/tests/conftest.py index 5a5b7a478..c5fc80c03 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -23,6 +23,9 @@ def node(host, request): if not request.node.get_marker(node_type) and not request.node.get_marker('all'): pytest.skip("Not a valid test for node type: %s" % node_type) + if request.node.get_marker("no_lvm_scenario") and lvm_scenario: + pytest.skip("Not a valid test for lvm scenarios") + if not lvm_scenario and request.node.get_marker("lvm_scenario"): pytest.skip("Not a valid test for non-lvm scenarios")