Clear TestNode objects after shutdown

TestNode objects need to be removed during shutdown, as setup_nodes does not
remove previous TestNode objects from previous test runs during setup.
pull/17288/head
JamesC 5 years ago committed by James Chiang
parent 6f40820757
commit 614c645643

@ -280,6 +280,8 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
rpc_logger.removeHandler(h)
if cleanup_tree_on_exit:
shutil.rmtree(self.options.tmpdir)
self.nodes.clear()
return exit_code
# Methods to override in subclass test scripts.

Loading…
Cancel
Save