tests: ensure tests marked with 'all' run on every node

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1150/head
Andrew Schoen 2016-12-05 10:07:04 -06:00
parent cd9b47ceb8
commit 4810b38ece
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import pytest
def CephNode(Ansible, Interface, request):
vars = Ansible.get_variables()
node_type = vars["group_names"][0]
if not request.node.get_marker(node_type):
if not request.node.get_marker(node_type) and not request.node.get_marker('all'):
pytest.skip("Not a valid test for node type")
# I can assume eth1 because I know all the vagrant