linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [pynfs PATCH] nfs4.1: clean up the session and client created in Environment.init()
@ 2019-03-14 18:56 Jeff Layton
  2019-03-15 18:11 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2019-03-14 18:56 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs

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 <jlayton@kernel.org>
---
 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"""
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-15 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 18:56 [pynfs PATCH] nfs4.1: clean up the session and client created in Environment.init() Jeff Layton
2019-03-15 18:11 ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).