From patchwork Tue Jun 12 06:09:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 10459399 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F3FDF601A0 for ; Tue, 12 Jun 2018 06:09:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB59228632 for ; Tue, 12 Jun 2018 06:09:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA9AD2864E; Tue, 12 Jun 2018 06:09:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85A2028632 for ; Tue, 12 Jun 2018 06:09:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753971AbeFLGJN (ORCPT ); Tue, 12 Jun 2018 02:09:13 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49172 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753801AbeFLGJM (ORCPT ); Tue, 12 Jun 2018 02:09:12 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3C8E0401EF07 for ; Tue, 12 Jun 2018 06:09:12 +0000 (UTC) Received: from dhcp-12-229.nay.redhat.com (unknown [10.66.12.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 52F081134CA8 for ; Tue, 12 Jun 2018 06:09:11 +0000 (UTC) From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH] common: improve regex in _check_dmesg Date: Tue, 12 Jun 2018 14:09:06 +0800 Message-Id: <20180612060906.17078-1-zlang@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 12 Jun 2018 06:09:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 12 Jun 2018 06:09:12 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'zlang@redhat.com' RCPT:'' Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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" \