From 9b07c2d4fd521a86c69b1ccc2bb18aaa9156ada0 Mon Sep 17 00:00:00 2001 From: Zorro Lang Date: Tue, 12 Jun 2018 14:09:06 +0800 Subject: [PATCH] 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. Signed-off-by: Zorro Lang Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index b595a6e0..1945066c 100644 --- a/common/rc +++ b/common/rc @@ -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" \ -- 2.39.5