From 2ebc8b50221a8155e2170983b49995664158df0e Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Thu, 3 Feb 2022 18:01:53 +0100 Subject: [PATCH] tests: do not run test_switch_provider on CentOS/RHEL 9 Signed-off-by: Fernando Fernandez Mancera --- tests/tests_switch_provider.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/tests_switch_provider.yml b/tests/tests_switch_provider.yml index 562fbf2..75afbac 100644 --- a/tests/tests_switch_provider.yml +++ b/tests/tests_switch_provider.yml @@ -5,6 +5,8 @@ - import_playbook: playbooks/tests_switch_provider.yml when: - # The test requires or should run with NetworkManager, therefore it cannot - # run on RHEL/CentOS 6 - - ansible_distribution_major_version != '6' + # The test requires NetworkManager and initscripts, therefore it can only + # run on RHEL/CentOS 7, RHEL/CentOS 8, or Fedora + - ansible_distribution in ['CentOS', 'RedHat'] and + ansible_distribution_major_version in ['7', '8'] + or ansible_distribution == 'Fedora'