From patchwork Tue Apr 16 08:14:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murphy Zhou X-Patchwork-Id: 10902127 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 21133139A for ; Tue, 16 Apr 2019 08:15:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A25D2040D for ; Tue, 16 Apr 2019 08:15:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEEAB2892A; Tue, 16 Apr 2019 08:15:10 +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 8BE5A2040D for ; Tue, 16 Apr 2019 08:15:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbfDPIPK (ORCPT ); Tue, 16 Apr 2019 04:15:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52252 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726346AbfDPIPK (ORCPT ); Tue, 16 Apr 2019 04:15:10 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CEDD1309265F; Tue, 16 Apr 2019 08:15:09 +0000 (UTC) Received: from localhost (dhcp-12-130.nay.redhat.com [10.66.12.130]) by smtp.corp.redhat.com (Postfix) with ESMTP id 38D1A1001E98; Tue, 16 Apr 2019 08:15:08 +0000 (UTC) From: Murphy Zhou To: guaneryu@gmail.com, fstests@vger.kernel.org Cc: bcodding@redhat.com, Murphy Zhou Subject: [PATCH v2] generic/294: add golden output for nfs Date: Tue, 16 Apr 2019 16:14:57 +0800 Message-Id: <20190416081457.10442-1-xzhou@redhat.com> In-Reply-To: <20190415040309.GN2824@desktop> References: <20190415040309.GN2824@desktop> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 16 Apr 2019 08:15:09 +0000 (UTC) Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Because NFS handles this differently, returning different values. Details: http://people.redhat.com/bcodding/nfs/2016/10/07/nfs_xfstest_generic/#generic294 Signed-off-by: Murphy Zhou --- v2: add a new golden output for nfs instead of _notrun. tests/generic/294 | 7 +++++++ tests/generic/294.out.nfs | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 tests/generic/294.out.nfs diff --git a/tests/generic/294 b/tests/generic/294 index b74579ac..a355c612 100755 --- a/tests/generic/294 +++ b/tests/generic/294 @@ -7,6 +7,7 @@ # Tests for EEXIST (not EROFS) for inode creations, if # we ask to create an already-existing entity on an RO filesystem # +seqfull=$0 seq=`basename $0` seqres=$RESULT_DIR/$seq echo "QA output created by $seq" @@ -27,6 +28,12 @@ _cleanup() . ./common/filter # real QA test starts here +# link correct .out file +if [ $FSTYP == "nfs" ]; then + rm -f $seqfull.out + ln -sf $seq.out.nfs $seqfull.out +fi + # Modify as appropriate. _supported_fs generic diff --git a/tests/generic/294.out.nfs b/tests/generic/294.out.nfs new file mode 100644 index 00000000..71ebeecd --- /dev/null +++ b/tests/generic/294.out.nfs @@ -0,0 +1,5 @@ +QA output created by 294 +mknod: 'SCRATCH_MNT/294.test/testnode': Read-only file system +mkdir: cannot create directory 'SCRATCH_MNT/294.test/testdir': Read-only file system +touch: cannot touch 'SCRATCH_MNT/294.test/testtarget': Read-only file system +ln: creating symbolic link 'SCRATCH_MNT/294.test/testlink': File exists