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
  • Loading branch information
hebasto committed May 1, 2023
1 parent 2302489 commit 268aca3
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 268aca3

Please sign in to comment.