From patchwork Tue Nov 29 07:32:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 9451129 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 2702F6071C for ; Tue, 29 Nov 2016 07:33:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C99527F7F for ; Tue, 29 Nov 2016 07:33:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11B0B27FA6; Tue, 29 Nov 2016 07:33:59 +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.9 required=2.0 tests=BAYES_00,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 C4F1D27F7F for ; Tue, 29 Nov 2016 07:33:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756158AbcK2Hd4 (ORCPT ); Tue, 29 Nov 2016 02:33:56 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:39314 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756073AbcK2Hdo (ORCPT ); Tue, 29 Nov 2016 02:33:44 -0500 X-IronPort-AV: E=Sophos;i="5.20,367,1444665600"; d="scan'208";a="989654" Received: from unknown (HELO cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 29 Nov 2016 15:33:18 +0800 Received: from localhost.localdomain (unknown [10.167.226.34]) by cn.fujitsu.com (Postfix) with ESMTP id 611684349044; Tue, 29 Nov 2016 15:33:15 +0800 (CST) From: Qu Wenruo To: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH 06/10] fstests: btrfs/091: Use _btrfs_check_scratch_qgroup other than fixed golden output Date: Tue, 29 Nov 2016 15:32:59 +0800 Message-Id: <20161129073303.14776-7-quwenruo@cn.fujitsu.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161129073303.14776-1-quwenruo@cn.fujitsu.com> References: <20161129073303.14776-1-quwenruo@cn.fujitsu.com> MIME-Version: 1.0 X-yoursite-MailScanner-ID: 611684349044.AB168 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: quwenruo@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Qu Wenruo --- tests/btrfs/091 | 5 ++--- tests/btrfs/091.out | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/btrfs/091 b/tests/btrfs/091 index e3c43c7..ab4ff4e 100755 --- a/tests/btrfs/091 +++ b/tests/btrfs/091 @@ -94,9 +94,8 @@ cp --reflink $SCRATCH_MNT/subv1/file1 $SCRATCH_MNT/subv3/file1 # in commit tree. So need to sync to update the qgroup commit tree. sync -units=`_btrfs_qgroup_units` -$BTRFS_UTIL_PROG qgroup show $units $SCRATCH_MNT | $SED_PROG -n '/[0-9]/p' | \ - $AWK_PROG '{print $2" "$3}' +_scratch_unmount +_btrfs_check_scratch_qgroup # success, all done status=0 diff --git a/tests/btrfs/091.out b/tests/btrfs/091.out index 68fe2df..f2981b5 100644 --- a/tests/btrfs/091.out +++ b/tests/btrfs/091.out @@ -1,7 +1,3 @@ QA output created by 091 wrote 262144/262144 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -65536 65536 -327680 65536 -327680 65536 -327680 65536