Skip to content

Commit 4f2f615

Browse files
committed
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.
1 parent ad7819d commit 4f2f615

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: test/util/test_runner.py

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ def bctest(testDir, testObj, buildenv):
7474
"""
7575
# Get the exec names and arguments
7676
execprog = os.path.join(buildenv["BUILDDIR"], "src", testObj["exec"] + buildenv["EXEEXT"])
77+
if testObj["exec"] == "./bitcoin-util":
78+
execprog = os.getenv("BITCOINUTIL", default=execprog)
79+
elif testObj["exec"] == "./bitcoin-tx":
80+
execprog = os.getenv("BITCOINTX", default=execprog)
81+
7782
execargs = testObj['args']
7883
execrun = [execprog] + execargs
7984

0 commit comments

Comments
 (0)