From patchwork Tue Jun 5 02:05:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huan Xu X-Patchwork-Id: 10447537 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 0755960467 for ; Tue, 5 Jun 2018 02:06:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3ADB291CA for ; Tue, 5 Jun 2018 02:06:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7AE6291D2; Tue, 5 Jun 2018 02:06:21 +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 7FC5C291CA for ; Tue, 5 Jun 2018 02:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbeFECGV (ORCPT ); Mon, 4 Jun 2018 22:06:21 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:47102 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751317AbeFECGU (ORCPT ); Mon, 4 Jun 2018 22:06:20 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="40738108" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 05 Jun 2018 10:06:18 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 77CBA4B40410 for ; Tue, 5 Jun 2018 10:06:12 +0800 (CST) Received: from archlinux.g08.fujitsu.local (10.167.226.105) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.399.0; Tue, 5 Jun 2018 10:06:16 +0800 From: Xu Huan To: Subject: [PATCH v2] fix generic 401 on fs without filesystem support Date: Tue, 5 Jun 2018 10:05:22 +0800 Message-ID: <20180605020522.2697-1-xuhuan.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-Originating-IP: [10.167.226.105] X-yoursite-MailScanner-ID: 77CBA4B40410.A16CB X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: xuhuan.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 notrun the test if the filesystem is not supported. on unsupported fs ,the test may have different result. --- tests/generic/401 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/generic/401 b/tests/generic/401 index 74f2bea5..1c790a33 100755 --- a/tests/generic/401 +++ b/tests/generic/401 @@ -3,9 +3,7 @@ # # Test filetype feature # -# This test does NOT require that file system support the d_type feature. -# It verifies that either all file types are reported as DT_UNKNOWN -# or all file types are reported correctly. +# This test not run if that file system support the d_type feature. # # For fs for which we know how to test the filetype feature (xfs|ext*) # verify getting DT_UNKNOWN IFF feature is disabled. @@ -83,12 +81,7 @@ if _supports_filetype $SCRATCH_MNT; then # print real file types src/t_dir_type $testdir | grep -vF '.' | sort else - # print fake dir file type for . and .. if they are DT_UNKNOWN - src/t_dir_type $testdir u | grep -F '.' | \ - awk '{ print $1, "d" }' | sort - # list unknown files and print filename as fake file type - src/t_dir_type $testdir u | grep -vF '.' | \ - awk '{ print $1, $1 }' | sort + _notrun "test not support on this filesystem" fi status=0