mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-23 12:14:30 +01:00
test: Move export_env_build_path to util.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user