Skip to content

Commit dde33ec

Browse files
committed
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.
1 parent 2b5a741 commit dde33ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,14 @@ def setup(self):
244244
"src",
245245
"bitcoin-cli" + config["environment"]["EXEEXT"],
246246
)
247+
fname_bitcoinutil = os.path.join(
248+
config["environment"]["BUILDDIR"],
249+
"src",
250+
"bitcoin-util" + config["environment"]["EXEEXT"],
251+
)
247252
self.options.bitcoind = os.getenv("BITCOIND", default=fname_bitcoind)
248253
self.options.bitcoincli = os.getenv("BITCOINCLI", default=fname_bitcoincli)
254+
self.options.bitcoinutil = os.getenv("BITCOINUTIL", default=fname_bitcoinutil)
249255

250256
os.environ['PATH'] = os.pathsep.join([
251257
os.path.join(config['environment']['BUILDDIR'], 'src'),

0 commit comments

Comments
 (0)