From patchwork Fri Apr 28 08:24:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9704023 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 5CDD4602B7 for ; Fri, 28 Apr 2017 08:24:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CE0828602 for ; Fri, 28 Apr 2017 08:24:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41E7628663; Fri, 28 Apr 2017 08:24:57 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 EB76528602 for ; Fri, 28 Apr 2017 08:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939018AbdD1IY4 (ORCPT ); Fri, 28 Apr 2017 04:24:56 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36182 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033676AbdD1IYm (ORCPT ); Fri, 28 Apr 2017 04:24:42 -0400 Received: by mail-wr0-f196.google.com with SMTP id v42so6262491wrc.3; Fri, 28 Apr 2017 01:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O6ARCdnT9MAz5tep/sTqcMSNDDV+4FIijBd6euFnDtc=; b=exUcHikMiAGJGDswy70rLLVMjXs4xsGhPR53nGJXhmFPQ4EX/hUAzT14s08JLYJLxr Z/02TDM9lMq5ayUdRbp1wv+gnIS2JXCHfeXXCVDs0U29I+QBwycfLBqcJ46gpFnSY5KS jbIF9SabII1ztxdrWXh8oj4RQ1vBEYQ0nYTApVZ6l8hFRoqFmrlCd/PZWrbjU2pCeF/I wKqUGNrUuyWXqgZPMWbHzjNOGULA/rIuuSFlXLGJrLMK1jAXUqWMmdzeAC/oixuE9cTU BZb8yj7BXb3v7hAq6G8HGA+MxZkfctxutGJkxfO42MfCk2qcGkRX/1hBIFviRnDYi60l py/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=O6ARCdnT9MAz5tep/sTqcMSNDDV+4FIijBd6euFnDtc=; b=mozLSCM6DN9u0VoqJ6skxIvoAVMo1ijAnu/wneBsw7JriwjP+vxqLyc9o6KsIyGHhN zpPehZmKZ7ndlNrpanSUmi47/xO0+y5z2RkMRUCYeyCiFlDCXl2TIF1kJehREh5Pq9gQ UTTqO/xmxv9bIwDucgPem3aWortEIVbdn/FpOcU21+M+cagI0mtAXs58PPKeXl5rl6jg S1aO6rsKucGSOg0XV1p0taRpr3JCUMYQNR7JEmBpZ+kwUugcqo6xfXNr/wSzGA7GVmzs ToMkCzSuibDOOgGCii44wP5nTq3R8E375OGIlkrfcO1I2kpyWgxYcnn006BtjwwGJLz+ ZvnQ== X-Gm-Message-State: AN3rC/5TY9/7fEvnGzuyLaXb7ZRLfs9i4ycOv4BGw5f4CMuSXCRiDN62 NApRvCt4PxB4AQ== X-Received: by 10.223.147.97 with SMTP id 88mr6134952wro.134.1493367880873; Fri, 28 Apr 2017 01:24:40 -0700 (PDT) Received: from amir-VirtualBox.lan (bzq-79-179-55-127.red.bezeqint.net. [79.179.55.127]) by smtp.gmail.com with ESMTPSA id e67sm637836wma.9.2017.04.28.01.24.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Apr 2017 01:24:40 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Miklos Szeredi , Xiong Zhou , linux-unionfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH v2 1/6] overlay/017: silence test output Date: Fri, 28 Apr 2017 11:24:43 +0300 Message-Id: <1493367888-26550-2-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493367888-26550-1-git-send-email-amir73il@gmail.com> References: <1493367888-26550-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change test to output golden silence on success. We are going to run the same check several times, so instead of cloning the test output, cloning the silence will be more conveniet. Generalize cleanup of temp files for the same reason. Signed-off-by: Amir Goldstein --- tests/overlay/017 | 7 +++++-- tests/overlay/017.out | 7 +------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/overlay/017 b/tests/overlay/017 index 5ca3040..7c1430d 100755 --- a/tests/overlay/017 +++ b/tests/overlay/017 @@ -40,6 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _cleanup() { + cd / rm -f $tmp.* } @@ -73,7 +74,7 @@ mknod $lowerdir/fifo p _scratch_mount -rm -f $tmp.before $tmp.after +rm -f $tmp.* # Test stable stat(2) st_ino @@ -89,11 +90,13 @@ done # find by inode number - expect to find file by inode number cat $tmp.before | while read ino f; do - find $f -inum $ino -maxdepth 0 | _filter_scratch + find $SCRATCH_MNT/ -maxdepth 1 -inum $ino | grep -q $f || \ + echo "$f not found by ino $ino" done # Compare before..after - expect silence diff $tmp.before $tmp.after +echo "Silence is golden" status=0 exit diff --git a/tests/overlay/017.out b/tests/overlay/017.out index 1f277c5..8222844 100644 --- a/tests/overlay/017.out +++ b/tests/overlay/017.out @@ -1,7 +1,2 @@ QA output created by 017 -SCRATCH_MNT/dir -SCRATCH_MNT/file -SCRATCH_MNT/symlink -SCRATCH_MNT/chrdev -SCRATCH_MNT/blkdev -SCRATCH_MNT/fifo +Silence is golden