test: Move export_env_build_path to util.py

This commit is contained in:
MarcoFalke
2025-08-06 15:31:32 +02:00
parent fa9f495308
commit fa75ef4328
2 changed files with 9 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ from .util import (
PortSeed,
assert_equal,
check_json_precision,
export_env_build_path,
find_vout_for_address,
get_binary_paths,
get_datadir_path,
@@ -226,14 +227,10 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
"""Call this method to start up the test framework object with options set."""
check_json_precision()
export_env_build_path(self.config)
self.options.cachedir = os.path.abspath(self.options.cachedir)
os.environ['PATH'] = os.pathsep.join([
os.path.join(self.config["environment"]["BUILDDIR"], "bin"),
os.environ['PATH']
])
# Set up temp directory and start logging
if self.options.tmpdir:
self.options.tmpdir = os.path.abspath(self.options.tmpdir)