Browse Source

Merge #8095: Test framework: only cleanup on successful test runs

1ad9339 Test framework: only cleanup on successful test runs (Suhas Daftuar)
0.13
MarcoFalke 9 years ago
parent
commit
6700cc993c
No known key found for this signature in database
GPG Key ID: 2D7F2372E50FE137
  1. 4
      qa/rpc-tests/test_framework/test_framework.py

4
qa/rpc-tests/test_framework/test_framework.py

@ -165,9 +165,11 @@ class BitcoinTestFramework(object): @@ -165,9 +165,11 @@ class BitcoinTestFramework(object):
else:
print("Note: bitcoinds were not stopped and may still be running")
if not self.options.nocleanup and not self.options.noshutdown:
if not self.options.nocleanup and not self.options.noshutdown and success:
print("Cleaning up")
shutil.rmtree(self.options.tmpdir)
else:
print("Not cleaning up dir %s" % self.options.tmpdir)
if success:
print("Tests successful")

Loading…
Cancel
Save