aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_framework.py
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2018-11-07 12:07:25 -0500
committerJames O'Beirne <james.obeirne@gmail.com>2018-11-29 17:41:12 -0500
commit4aabadbf44ad8f14cfa3f8921caf3135515b9ecf (patch)
tree684a2741a41e9a12565a5c8db0bd5ac5c135cdb3 /test/functional/test_framework/test_framework.py
parenta4eaaa6ac53606a1533b56050af77961d8c27dc7 (diff)
downloadbitcoin-4aabadbf44ad8f14cfa3f8921caf3135515b9ecf.tar.xz
tests: have combine_logs default to most recent test dir
Diffstat (limited to 'test/functional/test_framework/test_framework.py')
-rwxr-xr-xtest/functional/test_framework/test_framework.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index 44fc185e6d..0dfa9e0d24 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -43,6 +43,8 @@ TEST_EXIT_PASSED = 0
TEST_EXIT_FAILED = 1
TEST_EXIT_SKIPPED = 77
+TMPDIR_PREFIX = "bitcoin_func_test_"
+
class SkipTest(Exception):
"""This exception is raised to skip a test"""
@@ -151,7 +153,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
self.options.tmpdir = os.path.abspath(self.options.tmpdir)
os.makedirs(self.options.tmpdir, exist_ok=False)
else:
- self.options.tmpdir = tempfile.mkdtemp(prefix="test")
+ self.options.tmpdir = tempfile.mkdtemp(prefix=TMPDIR_PREFIX)
self._start_logging()
self.log.debug('Setting up network thread')