aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/zapwallettxes.sh
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-10-30 18:59:58 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-10-31 00:05:55 -0400
commit7a41614aa27b9d3855b6145831cb4ad958f78823 (patch)
tree0badd7331426f3c776b39ae6d2f2f4a1786d73a6 /qa/rpc-tests/zapwallettxes.sh
parentf635269cd154eb69ad67a6fb004ed360b6112e27 (diff)
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
Diffstat (limited to 'qa/rpc-tests/zapwallettxes.sh')
-rwxr-xr-xqa/rpc-tests/zapwallettxes.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/qa/rpc-tests/zapwallettxes.sh b/qa/rpc-tests/zapwallettxes.sh
index e6d490cccc..4312d84e94 100755
--- a/qa/rpc-tests/zapwallettxes.sh
+++ b/qa/rpc-tests/zapwallettxes.sh
@@ -8,13 +8,14 @@
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
set -f
-BITCOIND=${1}/bitcoind
-CLI=${1}/bitcoin-cli
+BITCOIND=${BITCOIND:-${1}/bitcoind}
+CLI=${BITCOINCLI:-${1}/bitcoin-cli}
DIR="${BASH_SOURCE%/*}"
SENDANDWAIT="${DIR}/send.sh"