Skip to content

Commit fa9de37

Browse files
author
MarcoFalke
committed
qa: Make tmpdir option an absolute path
This should fix issues with the multiwallet test and symlinks when the tmpdir is a relative path. Rather than fixing os.symlink to work with paths relative to a directory descriptor, which does not work on Windows, normalize the path instead.
1 parent 3a93270 commit fa9de37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ def main(self):
102102

103103
check_json_precision()
104104

105+
self.options.cachedir = os.path.abspath(self.options.cachedir)
106+
105107
# Set up temp directory and start logging
106108
if self.options.tmpdir:
109+
self.options.tmpdir = os.path.abspath(self.options.tmpdir)
107110
os.makedirs(self.options.tmpdir, exist_ok=False)
108111
else:
109112
self.options.tmpdir = tempfile.mkdtemp(prefix="test")

0 commit comments

Comments
 (0)