Skip to contentSkip to conversation

nfs4.1: clean up the session and client created in Environment.init()

PATCH Applied Jeff Layton 2 participants 2 messages Mar 14, 2019 – Mar 15, 2019

Subsystems (2)
lore
Share & tools
lore

Jeff Layton

author maintainer
#0 lore raw

PATCH 1/1 nfs4.1: clean up the session and client created in Environment.init()

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.

---
 nfs4.1/server41tests/environment.py | 2 ++
 1 file changed, 2 insertions(+)
nfs4.1/server41tests/environment.py +2 -0
index 0ce6943b19a5..bdfd52d3a171 100644
@@ -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"""
Signature · 1 line
2.20.1
#1 lore raw
Quoted 3 lines · Jeff Layton

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.

Thanks, applied.--b.

Quoted 21 lines
---
 nfs4.1/server41tests/environment.py | 2 ++
 1 file changed, 2 insertions(+)
nfs4.1/server41tests/environment.py +2 -0
index 0ce6943b19a5..bdfd52d3a171 100644
@@ -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"""
Signature · 1 line
2.20.1