From patchwork Sun May 20 18:45:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 10413583 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 3896A601F9 for ; Sun, 20 May 2018 18:45:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2115228484 for ; Sun, 20 May 2018 18:45:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 137B328731; Sun, 20 May 2018 18:45:34 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, 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 3CC1B28484 for ; Sun, 20 May 2018 18:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751428AbeETSpc (ORCPT ); Sun, 20 May 2018 14:45:32 -0400 Received: from imap.thunk.org ([74.207.234.97]:59090 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751292AbeETSpc (ORCPT ); Sun, 20 May 2018 14:45:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rnJJTxLmWvbeQhFtkT6Rz9PVVCOoa8HM11VLJjwoUbM=; b=IzrfUjNl029EwloXhTn/9Dt9dB BvnbUTWzo/QOwrCzhfd3K701LjFFI0O+Q0nsmitRJUp27OEI16A/yTOl6YySNMV5/Hu/xP9JWqnIY JYRGNnCb0NJQNhJz3jiu75plkFtlBJAoBxc28wDxOFNo2+NCxtoVHeWhFfx2Uotj36cc=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fKTKi-0004w0-Hb; Sun, 20 May 2018 18:45:29 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 8B8E07A4B09; Sun, 20 May 2018 14:45:20 -0400 (EDT) From: Theodore Ts'o To: fstests@vger.kernel.org Cc: jack@suse.cz, guaneryu@gmail.com, Theodore Ts'o Subject: [PATCH] generic: fix cleanup function for test 490 Date: Sun, 20 May 2018 14:45:17 -0400 Message-Id: <20180520184517.8826-1-tytso@mit.edu> X-Mailer: git-send-email 2.16.1.72.g5be1f00a9a X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP generic/490 fails because cleanup tries to delete . and .. since $tmp is left unset, and so "rm -f $tmp.*" does nothing useful. Instead delete temp files created by seek_sanity_test. Signed-off-by: Theodore Ts'o --- tests/generic/490 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/490 b/tests/generic/490 index b5042c2e..c0335ca0 100755 --- a/tests/generic/490 +++ b/tests/generic/490 @@ -49,7 +49,7 @@ _require_test_program "seek_sanity_test" _cleanup() { cd / - rm -f $tmp.* + rm -f $base_test_file* } $here/src/seek_sanity_test -s 19 -e 20 $base_test_file > $seqres.full 2>&1 ||