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

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