aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/vty_test_runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/tests/vty_test_runner.py')
-rw-r--r--openbsc/tests/vty_test_runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index f43436082..8b173977c 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -57,6 +57,8 @@ class TestVTYBase(unittest.TestCase):
self.vty = obscvty.VTYInteract(appstring, "127.0.0.1", appport)
def tearDown(self):
+ if self.vty:
+ self.vty._close_socket()
self.vty = None
osmoutil.end_proc(self.proc)