tests: update skip messages in conftest.py

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1150/head
Andrew Schoen 2016-12-06 10:50:54 -06:00
parent d79188c8b6
commit 1abbc948d9
1 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,10 @@ def node(Ansible, Interface, Command, request):
ansible_vars = Ansible.get_variables()
node_type = ansible_vars["group_names"][0]
if not request.node.get_marker(node_type) and not request.node.get_marker('all'):
pytest.skip("Not a valid test for node type")
pytest.skip("Not a valid test for node type: %s" % node_type)
if request.node.get_marker("journal_collocation") and not ansible_vars.get("journal_collocation"):
pytest.skip("Skipping because scenario is not using journal collocation")
pytest.skip("Scenario is not using journal collocation")
osd_ids = []
if node_type == "osds":