From patchwork Thu Mar 14 18:56:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 10853427 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC6241390 for ; Thu, 14 Mar 2019 18:56:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A9BB2A6C4 for ; Thu, 14 Mar 2019 18:56:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EA472A6C6; Thu, 14 Mar 2019 18:56:45 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 4A0332A6C4 for ; Thu, 14 Mar 2019 18:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727608AbfCNS4o (ORCPT ); Thu, 14 Mar 2019 14:56:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:46092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727606AbfCNS4n (ORCPT ); Thu, 14 Mar 2019 14:56:43 -0400 Received: from tleilax.poochiereds.net (cpe-71-70-156-158.nc.res.rr.com [71.70.156.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A6215217F5; Thu, 14 Mar 2019 18:56:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552589803; bh=ft2SeFa17CcNFTN19G/fHahY4DS5/12bEHodVW4v+nA=; h=From:To:Cc:Subject:Date:From; b=LBrlHYZ3DMw6johmlsEqyhe/tdWq5tXHdAx2ChjISuKib9BK/yldDdTAaxrOdDRMo yhvdssHNODZLe2GVfF8aw35n9Cv3H7Bc0LqIdupEsDOn1ZmEL4PkO6RbEFDdN31Kr1 emDiwF1NTzcUZDni6Kat1NJQ0zoFS+8ZSP/RsTZo= From: Jeff Layton To: bfields@fieldses.net Cc: linux-nfs@vger.kernel.org Subject: [pynfs PATCH] nfs4.1: clean up the session and client created in Environment.init() Date: Thu, 14 Mar 2019 14:56:41 -0400 Message-Id: <20190314185641.1048-1-jlayton@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Once we've returned from this function the session and client will be abandoned on the server. Clean them up since we're finished with them at this point. Signed-off-by: Jeff Layton --- nfs4.1/server41tests/environment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nfs4.1/server41tests/environment.py b/nfs4.1/server41tests/environment.py index 0ce6943b19a5..bdfd52d3a171 100644 --- a/nfs4.1/server41tests/environment.py +++ b/nfs4.1/server41tests/environment.py @@ -156,6 +156,8 @@ class Environment(testmod.Environment): # Make sure it is empty clean_dir(sess, self.opts.home) sess.c.null() + self.clean_sessions() + self.clean_clients() def _maketree(self, sess): """Make test tree"""