mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04: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
|
# Get the exec names and arguments
|
||||||
execprog = os.path.join(buildenv["BUILDDIR"], "src", testObj["exec"] + buildenv["EXEEXT"])
|
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']
|
execargs = testObj['args']
|
||||||
execrun = [execprog] + execargs
|
execrun = [execprog] + execargs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue