diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-05-01 12:01:45 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-05-22 11:23:24 +0100 |
commit | 4f2f615d1362afe92cabe9eab50087f8bfe454fd (patch) | |
tree | a348d1c751496db9bfac86a8fa6af7bea9b1934e | |
parent | ad7819d2f8abc311996cb6836315413641c2bebf (diff) |
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-x | test/util/test_runner.py | 5 |
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 |