summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-12-07 11:14:09 +0200
committerGitHub <noreply@github.com>2020-12-07 11:14:09 +0200
commite8678e2c51a243ee05c5f78a242018d9757c3597 (patch)
tree33f78beeecb5de3ef109dfb78c06c03f231ad437
parentf017e7312e8f4efb6ab1ba9f951cd5ba3088cbec (diff)
parent46a0656f7ae93c3de70e04af28aad3f7a971fda2 (diff)
Merge pull request #7679 from donaldsharp/topo_fixes
tests: Close some open handles
-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