From eab5cccfccd9488506e6f399620b261c14a625f8 Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Wed, 20 Dec 2023 14:42:20 -0500 Subject: [PATCH] test: Skip running tests where initscripts is not supported Signed-off-by: Wen Liang --- tests/tests_provider_nm.yml | 2 +- tests/tests_regression_nm.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests_provider_nm.yml b/tests/tests_provider_nm.yml index 5a4ee1a..3031e0d 100644 --- a/tests/tests_provider_nm.yml +++ b/tests/tests_provider_nm.yml @@ -43,5 +43,5 @@ - ansible_distribution_major_version != '6' - networkmanager_version is version('1.20.0', '>=') - - ansible_distribution != 'RedHat' or + - ansible_distribution not in ['RedHat', 'CentOS'] or ansible_distribution_major_version | int < 9 diff --git a/tests/tests_regression_nm.yml b/tests/tests_regression_nm.yml index 04bc1fa..6910550 100644 --- a/tests/tests_regression_nm.yml +++ b/tests/tests_regression_nm.yml @@ -35,5 +35,5 @@ - ansible_distribution_major_version != '6' # The test depends on behavior that is only visible with newer NM - networkmanager_version is version('1.22.0', '>=') - - ansible_distribution != 'RedHat' or + - ansible_distribution not in ['RedHat', 'CentOS'] or ansible_distribution_major_version | int < 9