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

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