Skip to content

Commit 2703412

Browse files
committed
Fix default binary in p2p tests to use environment variable
1 parent 29bff0e commit 2703412

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

qa/rpc-tests/maxblocksinflight.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def run(self):
7777

7878
class MaxBlocksInFlightTest(BitcoinTestFramework):
7979
def add_options(self, parser):
80-
parser.add_option("--testbinary", dest="testbinary", default="bitcoind",
80+
parser.add_option("--testbinary", dest="testbinary",
81+
default=os.getenv("BITCOIND", "bitcoind"),
8182
help="Binary to test max block requests behavior")
8283

8384
def setup_chain(self):

qa/rpc-tests/test_framework.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@ def __init__(self):
155155
self.num_nodes = 2
156156

157157
def add_options(self, parser):
158-
parser.add_option("--testbinary", dest="testbinary", default="bitcoind",
158+
parser.add_option("--testbinary", dest="testbinary",
159+
default=os.getenv("BITCOIND", "bitcoind"),
159160
help="bitcoind binary to test")
160-
parser.add_option("--refbinary", dest="refbinary", default="bitcoind",
161+
parser.add_option("--refbinary", dest="refbinary",
162+
default=os.getenv("BITCOIND", "bitcoind"),
161163
help="bitcoind binary to use for reference nodes (if any)")
162164

163165
def setup_chain(self):

0 commit comments

Comments
 (0)