aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-11-07 23:00:54 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-11-07 22:55:27 +0100
commitfae19aa1da0858678874815b344de83e1ee3a1bd (patch)
treec8e044f7d5906f2f79e13ac264cc7d007653b237 /qa
parent1253f8692fc3a11be9430685cd405236a68df6c3 (diff)
downloadbitcoin-fae19aa1da0858678874815b344de83e1ee3a1bd.tar.xz
[qa] test_framework: Exit when tmpdir exists
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/test_framework/test_framework.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/qa/rpc-tests/test_framework/test_framework.py b/qa/rpc-tests/test_framework/test_framework.py
index e6fc5fd8a2..e6d3e9ab9a 100755
--- a/qa/rpc-tests/test_framework/test_framework.py
+++ b/qa/rpc-tests/test_framework/test_framework.py
@@ -139,16 +139,11 @@ class BitcoinTestFramework(object):
success = False
try:
- if not os.path.isdir(self.options.tmpdir):
- os.makedirs(self.options.tmpdir)
+ os.makedirs(self.options.tmpdir, exist_ok=False)
self.setup_chain()
-
self.setup_network()
-
self.run_test()
-
success = True
-
except JSONRPCException as e:
print("JSONRPC error: "+e.error['message'])
traceback.print_tb(sys.exc_info()[2])