Blame SOURCES/0031-test-functions-FWD_GREP_LOG-allow-checking-error-cod.patch

63f414
From 8d8ec4530dea1a74254c6cc14ece4fa14f7f94fe Mon Sep 17 00:00:00 2001
63f414
From: Eric Garver <eric@garver.life>
63f414
Date: Thu, 3 Jun 2021 12:00:06 -0400
63f414
Subject: [PATCH 31/36] test(functions): FWD_GREP_LOG: allow checking error
63f414
 code
63f414
63f414
(cherry picked from commit 748bcaee9a1d1151cf0e4bc9229f7b46774332ae)
63f414
(cherry picked from commit 69c6a91ca507bdf0e18784ce06d3d872a1c2e5ab)
63f414
---
63f414
 src/tests/functions.at | 2 +-
63f414
 1 file changed, 1 insertion(+), 1 deletion(-)
63f414
63f414
diff --git a/src/tests/functions.at b/src/tests/functions.at
63f414
index 54afcf14585a..4b298644d7e4 100644
63f414
--- a/src/tests/functions.at
63f414
+++ b/src/tests/functions.at
63f414
@@ -328,7 +328,7 @@ m4_define([FWD_CHECK], [
63f414
 ])
63f414
 
63f414
 m4_define([FWD_GREP_LOG], [
63f414
-    AT_CHECK([grep "$1" ./firewalld.log], 0, [ignore], [ignore])
63f414
+    AT_CHECK([grep "$1" ./firewalld.log], $2, [ignore], [ignore])
63f414
 ])
63f414
 
63f414
 m4_define([TRIM], [[sed -e 's/^[ \t]*//' -e 's/[ \t]*$//']])
63f414
-- 
63f414
2.27.0
63f414