Skip to content

Commit

Permalink
[qa] test_framework: Exit when tmpdir exists
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#9098
Rebased-From: fae19aa
  • Loading branch information
MarcoFalke authored and luke-jr committed Dec 2, 2016
1 parent 387ec9d commit ecd7db5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions qa/rpc-tests/test_framework/test_framework.py
Expand Up @@ -137,16 +137,11 @@ def main(self):

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])
Expand Down

0 comments on commit ecd7db5

Please sign in to comment.