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