]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: improve regex in _check_dmesg
authorZorro Lang <zlang@redhat.com>
Tue, 12 Jun 2018 06:09:06 +0000 (14:09 +0800)
committerEryu Guan <guaneryu@gmail.com>
Tue, 12 Jun 2018 08:37:19 +0000 (16:37 +0800)
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 <zlang@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc

index b595a6e05662e9b5d24ee2bda1a9d726ce970ba7..1945066c05197b8d14da767d684b383a313aacf1 100644 (file)
--- 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" \