mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix default binary in p2p tests to use environment variable
This commit is contained in:
parent
29bff0e684
commit
2703412a39
@ -77,7 +77,8 @@ class TestManager(NodeConnCB):
|
|||||||
|
|
||||||
class MaxBlocksInFlightTest(BitcoinTestFramework):
|
class MaxBlocksInFlightTest(BitcoinTestFramework):
|
||||||
def add_options(self, parser):
|
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")
|
help="Binary to test max block requests behavior")
|
||||||
|
|
||||||
def setup_chain(self):
|
def setup_chain(self):
|
||||||
|
@ -155,9 +155,11 @@ class ComparisonTestFramework(BitcoinTestFramework):
|
|||||||
self.num_nodes = 2
|
self.num_nodes = 2
|
||||||
|
|
||||||
def add_options(self, parser):
|
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")
|
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)")
|
help="bitcoind binary to use for reference nodes (if any)")
|
||||||
|
|
||||||
def setup_chain(self):
|
def setup_chain(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user