mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
test: Make util/test_runner.py
honor BITCOINUTIL
and BITCOINTX
This change allows to drop in the executables via environment variables in the same way as for functional tests.
This commit is contained in:
parent
ad7819d2f8
commit
4f2f615d13
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ def bctest(testDir, testObj, buildenv):
|
|||
"""
|
||||
# Get the exec names and arguments
|
||||
execprog = os.path.join(buildenv["BUILDDIR"], "src", testObj["exec"] + buildenv["EXEEXT"])
|
||||
if testObj["exec"] == "./bitcoin-util":
|
||||
execprog = os.getenv("BITCOINUTIL", default=execprog)
|
||||
elif testObj["exec"] == "./bitcoin-tx":
|
||||
execprog = os.getenv("BITCOINTX", default=execprog)
|
||||
|
||||
execargs = testObj['args']
|
||||
execrun = [execprog] + execargs
|
||||
|
||||
|
|
Loading…
Reference in a new issue