[qa] test_framework: Exit when tmpdir exists

Github-Pull: #9098
Rebased-From: fae19aa1da
This commit is contained in:
MarcoFalke
2016-11-07 23:00:54 +01:00
committed by Luke Dashjr
parent 387ec9d963
commit ecd7db5767

View File

@@ -137,16 +137,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])