mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Test framework: only cleanup on successful test runs
This commit is contained in:
parent
77b49acc85
commit
1ad9339508
@ -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…
Reference in New Issue
Block a user