Blame SOURCES/0021-test-gh509-only-run-test-for-nftables-backend.patch

725d6a
From b33d40f277444f0af0f780b68389af4098ab639b Mon Sep 17 00:00:00 2001
725d6a
From: Eric Garver <eric@garver.life>
725d6a
Date: Mon, 6 Jan 2020 15:38:28 -0500
725d6a
Subject: [PATCH 21/45] test(gh509): only run test for nftables backend
725d6a
725d6a
The test wipes the config and therefore restarts with defaults (e.g.
725d6a
the nftables backend). Some hosts under test may not have nftables
725d6a
available so the test will fail. Only use the test if FIREWALL_BACKEND
725d6a
is nftables.
725d6a
725d6a
(cherry picked from commit 61140a7ed9d6b26cd030d366eb7c9111a3ad45df)
725d6a
(cherry picked from commit 4d3907862535298e6f8b6bc566bdce10a86647bc)
725d6a
---
725d6a
 src/tests/regression/gh509.at | 2 ++
725d6a
 1 file changed, 2 insertions(+)
725d6a
725d6a
diff --git a/src/tests/regression/gh509.at b/src/tests/regression/gh509.at
725d6a
index 00cc51c9c51f..1c151066c2bb 100644
725d6a
--- a/src/tests/regression/gh509.at
725d6a
+++ b/src/tests/regression/gh509.at
725d6a
@@ -1,3 +1,4 @@
725d6a
+m4_if(nftables, FIREWALL_BACKEND, [
725d6a
 FWD_START_TEST([missing firewalld.conf file])
725d6a
 AT_KEYWORDS(gh509)
725d6a
 
725d6a
@@ -12,3 +13,4 @@ FWD_RESTART
725d6a
 FWD_END_TEST([-e '/ERROR: Failed to load/d' dnl
725d6a
               -e '/WARNING:.*No such file or directory:.*/d' dnl
725d6a
               -e '/WARNING: Using fallback firewalld configuration settings/d'])
725d6a
+])
725d6a
-- 
725d6a
2.27.0
725d6a