aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/util.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-02-07 09:57:27 -0500
committerJohn Newbery <john@johnnewbery.com>2018-05-09 09:56:49 -0400
commitc22ce8a7b8954ed443e518e06319b907b6efd7be (patch)
tree2eb39849a1ffe1a7144983db72a8987dfe619878 /test/functional/test_framework/util.py
parent4a50ec0efd06477b4121cd1767a37ccc25632c6f (diff)
downloadbitcoin-c22ce8a7b8954ed443e518e06319b907b6efd7be.tar.xz
[Tests] Write stdout/stderr to datadir instead of temp file.
Diffstat (limited to 'test/functional/test_framework/util.py')
-rw-r--r--test/functional/test_framework/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py
index 1daaa6c482..540727dc85 100644
--- a/test/functional/test_framework/util.py
+++ b/test/functional/test_framework/util.py
@@ -301,6 +301,8 @@ def initialize_datadir(dirname, n):
f.write("keypool=1\n")
f.write("discover=0\n")
f.write("listenonion=0\n")
+ os.makedirs(os.path.join(datadir, 'stderr'), exist_ok=True)
+ os.makedirs(os.path.join(datadir, 'stdout'), exist_ok=True)
return datadir
def get_datadir_path(dirname, n):