From 7a41614aa27b9d3855b6145831cb4ad958f78823 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 30 Oct 2014 18:59:58 -0400 Subject: tests: allow rpc-tests to get filenames for bitcoind and bitcoin-cli from the environment This will allow for windows tests to run with bitcoind.exe and bitcoin-cli.exe --- qa/rpc-tests/walletbackup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qa/rpc-tests/walletbackup.sh') diff --git a/qa/rpc-tests/walletbackup.sh b/qa/rpc-tests/walletbackup.sh index ee11418bef..4af3d97f35 100755 --- a/qa/rpc-tests/walletbackup.sh +++ b/qa/rpc-tests/walletbackup.sh @@ -36,11 +36,12 @@ if [ $# -lt 1 ]; then echo "Usage: $0 path_to_binaries" echo "e.g. $0 ../../src" + echo "Env vars BITCOIND and BITCOINCLI may be used to specify the exact binaries used" exit 1 fi -BITCOIND=${1}/bitcoind -CLI=${1}/bitcoin-cli +BITCOIND=${BITCOIND:-${1}/bitcoind} +CLI=${BITCOINCLI:-${1}/bitcoin-cli} DIR="${BASH_SOURCE%/*}" SENDANDWAIT="${DIR}/send.sh" -- cgit v1.2.3