test: don't override BITCOIND and BITCOINCLI if they're set

In rpc-tests.py, don't override BITCOIND and BITCOINCLI if they're
already set. Makes it possible to run the tests with either another tree
or the GUI.

Github-Pull: #7209
Rebased-From: 83cdcbdca4
This commit is contained in:
Wladimir J. van der Laan 2015-12-14 14:18:12 +01:00
parent 9572e4944a
commit f3ad812208
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
1 changed files with 4 additions and 2 deletions

View File

@ -62,7 +62,9 @@ for arg in sys.argv[1:]:
#Set env vars
buildDir = BUILDDIR
if "BITCOIND" not in os.environ:
os.environ["BITCOIND"] = buildDir + '/src/bitcoind' + EXEEXT
if "BITCOINCLI" not in os.environ:
os.environ["BITCOINCLI"] = buildDir + '/src/bitcoin-cli' + EXEEXT
#Disable Windows tests by default