Skip to content

Commit

Permalink
Fix default binary in p2p tests to use environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaftuar committed Apr 29, 2015
1 parent 29bff0e commit 2703412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion qa/rpc-tests/maxblocksinflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def run(self):

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

def setup_chain(self):
Expand Down
6 changes: 4 additions & 2 deletions qa/rpc-tests/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ def __init__(self):
self.num_nodes = 2

def add_options(self, parser):
parser.add_option("--testbinary", dest="testbinary", default="bitcoind",
parser.add_option("--testbinary", dest="testbinary",
default=os.getenv("BITCOIND", "bitcoind"),
help="bitcoind binary to test")
parser.add_option("--refbinary", dest="refbinary", default="bitcoind",
parser.add_option("--refbinary", dest="refbinary",
default=os.getenv("BITCOIND", "bitcoind"),
help="bitcoind binary to use for reference nodes (if any)")

def setup_chain(self):
Expand Down

0 comments on commit 2703412

Please sign in to comment.