[Pkg-bitcoin-commits] [bitcoin] 81/126: qa: Make tmpdir option an absolute path

Jonas Smedegaard dr at jones.dk
Mon Nov 13 20:02:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.15.1_dfsg-1
in repository bitcoin.

commit f3457d0e83c408770eeabb002f569e22c9832c1b
Author: MarcoFalke <falke.marco at gmail.com>
Date:   Tue Oct 10 00:04:45 2017 +0200

    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.
    
    Github-Pull: #11472
    Rebased-From: fa9de370b17297d6dd542da627c8dd2b31aec340
---
 test/functional/test_framework/test_framework.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index a53eb51..7aabdd9 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -102,8 +102,11 @@ class BitcoinTestFramework(object):
 
         check_json_precision()
 
+        self.options.cachedir = os.path.abspath(self.options.cachedir)
+
         # Set up temp directory and start logging
         if self.options.tmpdir:
+            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")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/bitcoin.git



More information about the Pkg-bitcoin-commits mailing list