Skip to content

Commit 979698c

Browse files
committed
[RPC-Tests] add option to run rpc test over QT clients
1 parent b7c704a commit 979698c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

qa/rpc-tests/test_framework/test_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def main(self):
120120
if self.options.coveragedir:
121121
enable_coverage(self.options.coveragedir)
122122

123-
os.environ['PATH'] = self.options.srcdir+":"+os.environ['PATH']
123+
os.environ['PATH'] = self.options.srcdir+":"+self.options.srcdir+"/qt:"+os.environ['PATH']
124124

125125
check_json_precision()
126126

qa/rpc-tests/test_framework/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def initialize_chain(test_dir):
131131
# Create cache directories, run bitcoinds:
132132
for i in range(4):
133133
datadir=initialize_datadir("cache", i)
134-
args = [ os.getenv("BITCOIND", "bitcoind"), "-keypool=1", "-datadir="+datadir, "-discover=0" ]
134+
args = [ os.getenv("BITCOIND", "bitcoind"), "-server", "-keypool=1", "-datadir="+datadir, "-discover=0" ]
135135
if i > 0:
136136
args.append("-connect=127.0.0.1:"+str(p2p_port(0)))
137137
bitcoind_processes[i] = subprocess.Popen(args)
@@ -219,7 +219,7 @@ def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=
219219
if binary is None:
220220
binary = os.getenv("BITCOIND", "bitcoind")
221221
# RPC tests still depend on free transactions
222-
args = [ binary, "-datadir="+datadir, "-keypool=1", "-discover=0", "-rest", "-blockprioritysize=50000" ]
222+
args = [ binary, "-datadir="+datadir, "-server", "-keypool=1", "-discover=0", "-rest", "-blockprioritysize=50000" ]
223223
if extra_args is not None: args.extend(extra_args)
224224
bitcoind_processes[i] = subprocess.Popen(args)
225225
devnull = open(os.devnull, "w")

0 commit comments

Comments
 (0)