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

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