Blame SOURCES/0007-fix-test-functions-FWD_END_TEST-improve-grep-for-err.patch

40251c
From 0c254abccf3553192e13f736351926c5fa45df0b Mon Sep 17 00:00:00 2001
40251c
From: Eric Garver <eric@garver.life>
40251c
Date: Mon, 9 Dec 2019 16:57:13 -0500
40251c
Subject: [PATCH 07/37] fix: test/functions: FWD_END_TEST: improve grep for
40251c
 errors/warnings
40251c
40251c
Match more specifically so we don't accidentally match a debug log that
40251c
also has "ERROR:" or "WARNING:" as is common for modprobes.
40251c
40251c
(cherry picked from commit 5f67a78a68a4b5117d7be3402fc9dd639f318a60)
40251c
(cherry picked from commit ec0e86677372e994151263a3cb0f1124e2df219b)
40251c
---
40251c
 src/tests/functions.at | 3 +--
40251c
 1 file changed, 1 insertion(+), 2 deletions(-)
40251c
40251c
diff --git a/src/tests/functions.at b/src/tests/functions.at
40251c
index 31d1a3c187e4..1bed8a4f3a6c 100644
40251c
--- a/src/tests/functions.at
40251c
+++ b/src/tests/functions.at
40251c
@@ -150,8 +150,7 @@ m4_define([FWD_END_TEST], [
40251c
             if test -n "$1"; then
40251c
                 sed -i $1 ./firewalld.log
40251c
             fi
40251c
-            AT_FAIL_IF([grep ERROR ./firewalld.log])
40251c
-            AT_FAIL_IF([grep WARNING ./firewalld.log])
40251c
+            AT_FAIL_IF([grep '^[0-9-]*[ ]\+[0-9:]*[ ]\+\(ERROR\|WARNING\)' ./firewalld.log])
40251c
         fi
40251c
         m4_undefine([CURRENT_DBUS_ADDRESS])
40251c
         m4_undefine([CURRENT_TEST_NS])
40251c
-- 
40251c
2.23.0
40251c