Skip to content

Commit

Permalink
test(functions): FWD_GREP_LOG: allow checking error code
Browse files Browse the repository at this point in the history
  • Loading branch information
erig0 committed Jun 4, 2021
1 parent c72404c commit 748bcae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/functions.at
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,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]*$//']])
Expand Down

0 comments on commit 748bcae

Please sign in to comment.