From patchwork Wed Oct 24 02:26:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Yu X-Patchwork-Id: 10654105 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 4622814BD for ; Wed, 24 Oct 2018 03:12:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CD072A2E1 for ; Wed, 24 Oct 2018 03:12:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 282742A35D; Wed, 24 Oct 2018 03:12: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 B97D52A2E1 for ; Wed, 24 Oct 2018 03:12:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725826AbeJXLiP (ORCPT ); Wed, 24 Oct 2018 07:38:15 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35885 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725998AbeJXLiP (ORCPT ); Wed, 24 Oct 2018 07:38:15 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id E6E4A9EA463B2; Wed, 24 Oct 2018 10:26:58 +0800 (CST) Received: from szvp000201624.huawei.com (10.120.216.130) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Wed, 24 Oct 2018 10:26:49 +0800 From: Chao Yu To: CC: , , Chao Yu Subject: [PATCH] common/rc: fix to check inode creation on scratch_mnt in _require_btime() Date: Wed, 24 Oct 2018 10:26:45 +0800 Message-ID: <20181024022645.74084-1-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 MIME-Version: 1.0 X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP _require_btime() should check inode creation feature on SCRATCH_MNT mountpoint intead of TEST_DIR mountpoint, otherwise generic/508 will fail due to incorrect check of this function. Signed-off-by: Chao Yu --- common/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/rc b/common/rc index b4987a9cd7f7..5154241a5cee 100644 --- a/common/rc +++ b/common/rc @@ -3845,10 +3845,10 @@ _dmsetup_create() _require_btime() { - $XFS_IO_PROG -f $TEST_DIR/test_creation_time -c "statx -v" \ + $XFS_IO_PROG -f $SCRATCH_MNT/test_creation_time -c "statx -v" \ | grep btime >>$seqres.full 2>&1 || \ _notrun "inode creation time not supported by this filesystem" - rm -f $TEST_DIR/test_creation_time + rm -f $SCRATCH_MNT/test_creation_time } init_rc