aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-05-01 12:01:45 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-05-22 11:23:24 +0100
commit4f2f615d1362afe92cabe9eab50087f8bfe454fd (patch)
treea348d1c751496db9bfac86a8fa6af7bea9b1934e
parentad7819d2f8abc311996cb6836315413641c2bebf (diff)
downloadbitcoin-4f2f615d1362afe92cabe9eab50087f8bfe454fd.tar.xz
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.
-rwxr-xr-xtest/util/test_runner.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/util/test_runner.py b/test/util/test_runner.py
index e5cdd0bc3a..1cd368f6f4 100755
--- a/test/util/test_runner.py
+++ b/test/util/test_runner.py
@@ -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