mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-14 14:42:22 -04:00
Tear down module logger handler in system tests
The module-level logger has a handler that writes into a temporary directory. Ensure the logging output is flushed and the handler is closed before attempting to remove this temporary directory.
This commit is contained in:
parent
1aaefc9cf4
commit
0f8a2b07a4
1 changed files with 2 additions and 0 deletions
|
|
@ -449,6 +449,8 @@ else:
|
|||
)
|
||||
else:
|
||||
mlogger.debug("deleting temporary directory")
|
||||
handler.flush()
|
||||
handler.close()
|
||||
shutil.rmtree(testdir)
|
||||
|
||||
def _run_script( # pylint: disable=too-many-arguments
|
||||
|
|
|
|||
Loading…
Reference in a new issue