From patchwork Tue Apr 12 07:59:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 8807731 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4DDEB9F3A0 for ; Tue, 12 Apr 2016 08:00:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7CFA820357 for ; Tue, 12 Apr 2016 08:00:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6711A200CC for ; Tue, 12 Apr 2016 08:00:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932279AbcDLIAI (ORCPT ); Tue, 12 Apr 2016 04:00:08 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:22836 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S932270AbcDLIAH (ORCPT ); Tue, 12 Apr 2016 04:00:07 -0400 X-IronPort-AV: E=Sophos;i="5.20,367,1444665600"; d="scan'208";a="432775" Received: from unknown (HELO cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 12 Apr 2016 16:00:03 +0800 Received: from localhost.localdomain (unknown [10.167.226.34]) by cn.fujitsu.com (Postfix) with ESMTP id 70DF44056404; Tue, 12 Apr 2016 15:59:58 +0800 (CST) From: Qu Wenruo To: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH] fstests: btrfs/091: Disable compress to avoid output dismatch Date: Tue, 12 Apr 2016 15:59:58 +0800 Message-Id: <1460447998-6899-1-git-send-email-quwenruo@cn.fujitsu.com> X-Mailer: git-send-email 2.8.0 MIME-Version: 1.0 X-yoursite-MailScanner-ID: 70DF44056404.ACD80 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: quwenruo@cn.fujitsu.com X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If run btrfs/091 with "-o compress=lzo" mount option, test case will fail, as compress makes extent much smaller on disk, making output different from golden output. As this test case is only testing qgroup, not compression, disable compression manually in test case. Signed-off-by: Qu Wenruo --- tests/btrfs/091 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/btrfs/091 b/tests/btrfs/091 index 16b5c16..ad9f71c 100755 --- a/tests/btrfs/091 +++ b/tests/btrfs/091 @@ -60,7 +60,8 @@ run_check _scratch_mkfs "--nodesize $NODESIZE" # inode cache will also take space in fs tree, disable them to get consistent # result. # discard error output since we will check return value manually. -_scratch_mount "-o noinode_cache" 2> /dev/null +# also disable all compression, or output will mismatch with golden output +_scratch_mount "-o noinode_cache,compress=no,compress-force=no" 2> /dev/null # Check for old kernel which doesn't support 'noinode_cache' mount option if [ $? -ne 0 ]; then