The test will be skipped if journal_collocation is not True in the
group_vars for the scenario.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
if not request.node.get_marker(node_type) and not request.node.get_marker('all'):
pytest.skip("Not a valid test for node type")
+ if request.node.get_marker("journal_collocation") and not vars.get("journal_collocation"):
+ pytest.skip("Skipping because scenario is not using journal collocation")
+
osd_ids = []
if node_type == "osds":
result = Command.check_output('sudo ls /var/lib/ceph/osd/ | grep -oP "\d+$"')
item.add_marker(pytest.mark.rgws)
else:
item.add_marker(pytest.mark.all)
+
+ if "journal_collocation" in test_path:
+ item.add_marker(pytest.mark.journal_collocation)