diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-11-07 23:00:54 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-11-07 22:55:27 +0100 |
commit | fae19aa1da0858678874815b344de83e1ee3a1bd (patch) | |
tree | c8e044f7d5906f2f79e13ac264cc7d007653b237 /qa/rpc-tests/test_framework | |
parent | 1253f8692fc3a11be9430685cd405236a68df6c3 (diff) | |
download | bitcoin-fae19aa1da0858678874815b344de83e1ee3a1bd.tar.xz |
[qa] test_framework: Exit when tmpdir exists
Diffstat (limited to 'qa/rpc-tests/test_framework')
-rwxr-xr-x | qa/rpc-tests/test_framework/test_framework.py | 7 |
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]) |