From 4f2f615d1362afe92cabe9eab50087f8bfe454fd Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Mon, 1 May 2023 12:01:45 +0100 Subject: [PATCH] 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. --- test/util/test_runner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/util/test_runner.py b/test/util/test_runner.py index e5cdd0bc3ad..1cd368f6f44 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