QA: stop nodes after RPC tests, even with --nocleanup
`--nocleanup` should provide a way to preserve test data, but should not have an impact on whether nodes are to be stopped after the test execution. In particular, when currently running RPC tests with `--nocleanup`, then it may result in several active `bitcoind` processes, which are not terminated properly.
This commit is contained in:
parent
8f955b9661
commit
2eadeb27ed
1 changed files with 4 additions and 2 deletions
|
@ -128,10 +128,12 @@ class BitcoinTestFramework(object):
|
|||
print("Unexpected exception caught during testing: "+str(e))
|
||||
traceback.print_tb(sys.exc_info()[2])
|
||||
|
||||
if not self.options.nocleanup:
|
||||
print("Cleaning up")
|
||||
print("Stopping nodes")
|
||||
stop_nodes(self.nodes)
|
||||
wait_bitcoinds()
|
||||
|
||||
if not self.options.nocleanup:
|
||||
print("Cleaning up")
|
||||
shutil.rmtree(self.options.tmpdir)
|
||||
|
||||
if success:
|
||||
|
|
Loading…
Reference in a new issue