From patchwork Thu Jan 15 09:30:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eryu Guan X-Patchwork-Id: 5638011 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2B517C058D for ; Thu, 15 Jan 2015 09:31:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 798C42013D for ; Thu, 15 Jan 2015 09:31:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFF9120138 for ; Thu, 15 Jan 2015 09:31:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751587AbbAOJbK (ORCPT ); Thu, 15 Jan 2015 04:31:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37072 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570AbbAOJbJ (ORCPT ); Thu, 15 Jan 2015 04:31:09 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0F9V9vg009502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 15 Jan 2015 04:31:09 -0500 Received: from localhost (dhcp-12-109.nay.redhat.com [10.66.12.109]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0F9V6J2008514; Thu, 15 Jan 2015 04:31:08 -0500 From: Eryu Guan To: fstests@vger.kernel.org Cc: Eryu Guan Subject: [PATCH 3/3] common: add _disable_dmesg_check function Date: Thu, 15 Jan 2015 17:30:31 +0800 Message-Id: <1421314231-11076-4-git-send-email-eguan@redhat.com> In-Reply-To: <1421314231-11076-1-git-send-email-eguan@redhat.com> References: <1421314231-11076-1-git-send-email-eguan@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Introduce _disable_dmesg_check function, which can be called by tests that generate WARNINGs etc. on purpose, so the tests won't fail _dmesg_check. Signed-off-by: Eryu Guan --- common/rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/rc b/common/rc index 5ce3322..edd22bf 100644 --- a/common/rc +++ b/common/rc @@ -2805,6 +2805,12 @@ _get_device_size() grep `_short_dev $1` /proc/partitions | awk '{print $3}' } +# don't check dmesg log after test +_disable_dmesg_check() +{ + rm -f ${RESULT_DIR}/check_dmesg +} + init_rc() { if [ "$iam" == new ]