Skip to content

Commit

Permalink
test: Make util/test_runner.py honor BITCOINUTIL and BITCOINTX
Browse files Browse the repository at this point in the history
This change allows to drop in the executables via environment variables
in the same way as for functional tests.
  • Loading branch information
hebasto committed May 22, 2023
1 parent ad7819d commit 4f2f615
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/util/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4f2f615

Please sign in to comment.