aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-07-31 14:04:53 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-07-31 14:08:22 -0400
commit6548cc9f9073bf6602e17f62017af5c0e2bc3457 (patch)
treeabb330f23f031106b9ca7120a729a5a1eee0dd88 /qa
parenta67eef17236f71379e01bffed477674be9ee8f38 (diff)
test: don't let the port number exceed the legal range
Diffstat (limited to 'qa')
-rwxr-xr-xqa/pull-tester/run-bitcoind-for-test.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/pull-tester/run-bitcoind-for-test.sh.in b/qa/pull-tester/run-bitcoind-for-test.sh.in
index ecc42e12b1..e186bd7a23 100755
--- a/qa/pull-tester/run-bitcoind-for-test.sh.in
+++ b/qa/pull-tester/run-bitcoind-for-test.sh.in
@@ -9,7 +9,7 @@ mkdir -p "$DATADIR"/regtest
touch "$DATADIR/regtest/debug.log"
tail -q -n 1 -F "$DATADIR/regtest/debug.log" | grep -m 1 -q "Done loading" &
WAITER=$!
-PORT=`expr $BASHPID + 10000`
+PORT=`expr 10000 + $BASHPID % 55536`
"@abs_top_builddir@/src/bitcoind@EXEEXT@" -connect=0.0.0.0 -datadir="$DATADIR" -rpcuser=user -rpcpassword=pass -listen -keypool=3 -debug -debug=net -logtimestamps -port=$PORT -whitelist=127.0.0.1 -regtest -rpcport=`expr $PORT + 1` &
BITCOIND=$!