From patchwork Tue Sep 4 06:26:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Fengqi X-Patchwork-Id: 10586691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2EB215A4 for ; Tue, 4 Sep 2018 06:27:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D212209CC for ; Tue, 4 Sep 2018 06:27:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10B4328FAE; Tue, 4 Sep 2018 06:27:08 +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 563F6209CC for ; Tue, 4 Sep 2018 06:27:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726507AbeIDKun (ORCPT ); Tue, 4 Sep 2018 06:50:43 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:19451 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726011AbeIDKun (ORCPT ); Tue, 4 Sep 2018 06:50:43 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="44428244" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 04 Sep 2018 14:26:57 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 97BE84B6AE18 for ; Tue, 4 Sep 2018 14:26:56 +0800 (CST) Received: from fnst.localdomain (10.167.226.155) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Sep 2018 14:27:02 +0800 From: Lu Fengqi To: Subject: [PATCH] generic/498: don't call _cleanup_flakey repeatedly Date: Tue, 4 Sep 2018 14:26:50 +0800 Message-ID: <20180904062650.26695-1-lufq.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-Originating-IP: [10.167.226.155] X-yoursite-MailScanner-ID: 97BE84B6AE18.AB0F1 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lufq.fnst@cn.fujitsu.com Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since exit always traps into _cleanup function which contains _cleanup_flakey, don't need _cleanup_flakey twice. Signed-off-by: Lu Fengqi --- tests/generic/498 | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/generic/498 b/tests/generic/498 index 1cf73bda3b60..71f5091c30af 100755 --- a/tests/generic/498 +++ b/tests/generic/498 @@ -58,7 +58,6 @@ _flakey_drop_and_remount [ -f $SCRATCH_MNT/B/foo ] || echo "file B/foo is missing" _unmount_flakey -_cleanup_flakey echo "Silence is golden" status=0