diff options
| author | MarcoFalke <[email protected]> | 2016-05-25 11:52:25 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-05-25 11:53:25 +0200 |
| commit | 6700cc993cc07fb0f5b8b577ff8c4afcf0b18274 (patch) | |
| tree | 94daeded64f602e20b36f537fa4262b5fb055bfb | |
| parent | Merge #8014: Qt: Sort transactions by date (diff) | |
| parent | Test framework: only cleanup on successful test runs (diff) | |
| download | discoin-6700cc993cc07fb0f5b8b577ff8c4afcf0b18274.tar.xz discoin-6700cc993cc07fb0f5b8b577ff8c4afcf0b18274.zip | |
Merge #8095: Test framework: only cleanup on successful test runs
1ad9339 Test framework: only cleanup on successful test runs (Suhas Daftuar)
| -rwxr-xr-x | qa/rpc-tests/test_framework/test_framework.py | 4 |
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 b9b803429..49f419226 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") |