Browse Source

Test framework: only cleanup on successful test runs

tags/v0.15.1
Suhas Daftuar 5 years ago
parent
commit
1ad9339508
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      qa/rpc-tests/test_framework/test_framework.py

+ 3
- 1
qa/rpc-tests/test_framework/test_framework.py View File

@@ -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