mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
test: determine path to bitcoin-util in test framework
The path is stored in `self.options.bitcoinutil`, points to `src/bitcoin-util` by default and can be overrided with the `BITCOINUTIL` environment variable.
This commit is contained in:
parent
2b5a741e98
commit
dde33eca63
1 changed files with 6 additions and 0 deletions
|
|
@ -244,8 +244,14 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
|||
"src",
|
||||
"bitcoin-cli" + config["environment"]["EXEEXT"],
|
||||
)
|
||||
fname_bitcoinutil = os.path.join(
|
||||
config["environment"]["BUILDDIR"],
|
||||
"src",
|
||||
"bitcoin-util" + config["environment"]["EXEEXT"],
|
||||
)
|
||||
self.options.bitcoind = os.getenv("BITCOIND", default=fname_bitcoind)
|
||||
self.options.bitcoincli = os.getenv("BITCOINCLI", default=fname_bitcoincli)
|
||||
self.options.bitcoinutil = os.getenv("BITCOINUTIL", default=fname_bitcoinutil)
|
||||
|
||||
os.environ['PATH'] = os.pathsep.join([
|
||||
os.path.join(config['environment']['BUILDDIR'], 'src'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue