Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D498DC10F06 for ; Mon, 11 Mar 2019 15:49:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFF532075C for ; Mon, 11 Mar 2019 15:49:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbfCKPtw (ORCPT ); Mon, 11 Mar 2019 11:49:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52512 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727508AbfCKPtv (ORCPT ); Mon, 11 Mar 2019 11:49:51 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C9DED3091782; Mon, 11 Mar 2019 15:49:51 +0000 (UTC) Received: from coeurl.usersys.redhat.com (ovpn-122-19.rdu2.redhat.com [10.10.122.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id B0F4B60C4E; Mon, 11 Mar 2019 15:49:51 +0000 (UTC) Received: by coeurl.usersys.redhat.com (Postfix, from userid 1000) id 3CF7721502; Mon, 11 Mar 2019 11:49:51 -0400 (EDT) From: Scott Mayhew To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org Subject: [pynfs PATCH 2/3] nfs4.1: clean up the session and client created in Environment.finish() Date: Mon, 11 Mar 2019 11:49:50 -0400 Message-Id: <20190311154951.6144-3-smayhew@redhat.com> In-Reply-To: <20190311154951.6144-1-smayhew@redhat.com> References: <20190311154951.6144-1-smayhew@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 11 Mar 2019 15:49:51 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Otherwise, they stick around on the server for a lease period. Signed-off-by: Scott Mayhew --- 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 1a898f8..0ce6943 100644 --- a/nfs4.1/server41tests/environment.py +++ b/nfs4.1/server41tests/environment.py @@ -208,6 +208,8 @@ class Environment(testmod.Environment): sess = self.c1.new_client_session("Environment.init_%i" % self.timestamp) clean_dir(sess, self.opts.home) sess.c.null() + self.clean_sessions() + self.clean_clients() def startUp(self): """Run before each test""" -- 2.17.2