Skip to content

Commit

Permalink
QA: stop nodes after RPC tests, even with --nocleanup
Browse files Browse the repository at this point in the history
`--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.
  • Loading branch information
dexX7 committed Apr 20, 2015
1 parent 8f955b9 commit 2eadeb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qa/rpc-tests/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,12 @@ def main(self):
print("Unexpected exception caught during testing: "+str(e))
traceback.print_tb(sys.exc_info()[2])

print("Stopping nodes")
stop_nodes(self.nodes)
wait_bitcoinds()

if not self.options.nocleanup:
print("Cleaning up")
stop_nodes(self.nodes)
wait_bitcoinds()
shutil.rmtree(self.options.tmpdir)

if success:
Expand Down

0 comments on commit 2eadeb2

Please sign in to comment.