qa: Avoid logging node stopping info when a test has 0 nodes

(This applies to the test in the parent commit).
This commit is contained in:
Hodlinator 2025-02-12 23:52:17 +01:00
parent 7d994d0564
commit c107aa8c87
No known key found for this signature in database

View file

@ -323,11 +323,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
self.log.debug('Closing down network thread')
self.network_thread.close()
if self.success == TestStatus.FAILED:
self.log.info("Not stopping nodes as test failed. The dangling processes will be cleaned up later.")
else:
self.log.info("Stopping nodes")
if self.nodes:
if self.nodes:
if self.success == TestStatus.FAILED:
self.log.info("Not stopping nodes as test failed. The dangling processes will be cleaned up later.")
else:
self.log.info("Stopping nodes")
self.stop_nodes()
should_clean_up = (