Browse Source

Fix default binary in p2p tests to use environment variable

tags/v0.15.1
Suhas Daftuar 6 years ago
parent
commit
2703412a39
2 changed files with 6 additions and 3 deletions
  1. 2
    1
      qa/rpc-tests/maxblocksinflight.py
  2. 4
    2
      qa/rpc-tests/test_framework.py

+ 2
- 1
qa/rpc-tests/maxblocksinflight.py View File

@@ -77,7 +77,8 @@ class TestManager(NodeConnCB):
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):

+ 4
- 2
qa/rpc-tests/test_framework.py View File

@@ -155,9 +155,11 @@ class ComparisonTestFramework(BitcoinTestFramework):
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):

Loading…
Cancel
Save