aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework/test_framework.py
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@chaincode.com>2016-05-24 11:35:06 -0400
committerSuhas Daftuar <sdaftuar@chaincode.com>2016-05-25 05:43:50 -0400
commit1ad933950884ae3411cce78e3b8e92e9a649e735 (patch)
tree94daeded64f602e20b36f537fa4262b5fb055bfb /qa/rpc-tests/test_framework/test_framework.py
parent77b49acc85d05eda96b6892db835d79f30314a3b (diff)
downloadbitcoin-1ad933950884ae3411cce78e3b8e92e9a649e735.tar.xz
Test framework: only cleanup on successful test runs
Diffstat (limited to 'qa/rpc-tests/test_framework/test_framework.py')
-rwxr-xr-xqa/rpc-tests/test_framework/test_framework.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/test_framework.py b/qa/rpc-tests/test_framework/test_framework.py
index b9b803429d..49f4192269 100755
--- a/qa/rpc-tests/test_framework/test_framework.py
+++ b/qa/rpc-tests/test_framework/test_framework.py
@@ -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")