[Tests] Write stdout/stderr to datadir instead of temp file.

This commit is contained in:
John Newbery
2018-02-07 09:57:27 -05:00
parent 4a50ec0efd
commit c22ce8a7b8
3 changed files with 21 additions and 9 deletions

View File

@@ -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):