Skip to contentSkip to conversation

common: improve regex in _check_dmesg

PATCH New Zorro Lang 1 participant 1 message Jun 12, 2018

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 common: improve regex in _check_dmesg

A dmesg output as below cause all cases fail:

[  508.002072] EDAC DEBUG: ie31200_check: MC0

Due to it matches egrep -e "BUG:" in _check_dmesg. But it's not a real BUG output, so use "\bBUG:" to avoid this mistake.

---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/rc +1 -1
index b595a6e0..1945066c 100644
@@ -3460,7 +3460,7 @@ _check_dmesg()
 	_dmesg_since_test_start | $filter >$seqres.dmesg
 	egrep -q -e "kernel BUG at" \
 	     -e "WARNING:" \
-	     -e "BUG:" \
+	     -e "\bBUG:" \
 	     -e "Oops:" \
 	     -e "possible recursive locking detected" \
 	     -e "Internal error" \
Signature · 1 line
2.14.4