summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/topogen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/lib/topogen.py')
-rw-r--r--tests/topotests/lib/topogen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py
index 7ae4223f72..eaf7f90479 100644
--- a/tests/topotests/lib/topogen.py
+++ b/tests/topotests/lib/topogen.py
@@ -1114,6 +1114,7 @@ def diagnose_env_linux():
logger.warning(
"BGP topologies are still using exabgp version 3, expect failures"
)
+ p.close()
# We want to catch all exceptions
# pylint: disable=W0702
@@ -1122,6 +1123,7 @@ def diagnose_env_linux():
# After we logged the output to file, remove the handler.
logger.removeHandler(fhandler)
+ fhandler.close()
return ret