From patchwork Wed Jun 24 11:09:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eryu Guan X-Patchwork-Id: 6666911 Return-Path: X-Original-To: patchwork-fstests@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 A571A9F1C1 for ; Wed, 24 Jun 2015 11:09:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA09820698 for ; Wed, 24 Jun 2015 11:09:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E76E920689 for ; Wed, 24 Jun 2015 11:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751339AbbFXLJR (ORCPT ); Wed, 24 Jun 2015 07:09:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59581 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751773AbbFXLJR (ORCPT ); Wed, 24 Jun 2015 07:09:17 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 04484359A5A for ; Wed, 24 Jun 2015 11:09:17 +0000 (UTC) Received: from localhost (dhcp12-138.nay.redhat.com [10.66.12.138] (may be forged)) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5OB9FoK031838; Wed, 24 Jun 2015 07:09:16 -0400 From: Eryu Guan To: fstests@vger.kernel.org Cc: Eryu Guan Subject: [PATCH] fstests: remove $seqres.full before test to avoid keep-growing log file Date: Wed, 24 Jun 2015 19:09:02 +0800 Message-Id: <1435144142-10380-1-git-send-email-eguan@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some tests append logs to $seqres.full and never remove the log, which keeps the log file growing. Remove $seqres.full before test in following tests: ext4/271 generic/019 generic/269 generic/270 shared/272 Signed-off-by: Eryu Guan --- tests/ext4/271 | 1 + tests/generic/019 | 1 + tests/generic/269 | 1 + tests/generic/270 | 1 + tests/shared/272 | 1 + 5 files changed, 5 insertions(+) diff --git a/tests/ext4/271 b/tests/ext4/271 index e77ae57..217d0d8 100755 --- a/tests/ext4/271 +++ b/tests/ext4/271 @@ -41,6 +41,7 @@ _supported_os Linux _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seqres.full 2>&1 # -onoload and EXT4_SYNC_FL on file is important becase result in diff --git a/tests/generic/019 b/tests/generic/019 index ca196ca..76a09d5 100755 --- a/tests/generic/019 +++ b/tests/generic/019 @@ -173,6 +173,7 @@ _workout() # real QA test starts here +rm -f $seqres.full _scratch_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed" _scratch_mount || _fail "mount failed" allow_fail_make_request diff --git a/tests/generic/269 b/tests/generic/269 index cff5e54..fe648b5 100755 --- a/tests/generic/269 +++ b/tests/generic/269 @@ -66,6 +66,7 @@ _supported_os Linux _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount diff --git a/tests/generic/270 b/tests/generic/270 index cebd377..255ebf2 100755 --- a/tests/generic/270 +++ b/tests/generic/270 @@ -81,6 +81,7 @@ _require_user _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota" chmod 777 $SCRATCH_MNT diff --git a/tests/shared/272 b/tests/shared/272 index 4417535..11b2a00 100755 --- a/tests/shared/272 +++ b/tests/shared/272 @@ -87,6 +87,7 @@ _supported_os Linux _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((64 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount