Skip to content

Commit bd4c22e

Browse files
author
MarcoFalke
committed
[rpc-tests] Check return code
1 parent 0d8b175 commit bd4c22e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qa/pull-tester/rpc-tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
if (len(opts) == 0 or (len(opts) == 1 and "-win" in opts ) or '-extended' in opts
103103
or testScripts[i] in opts or re.sub(".py$", "", testScripts[i]) in opts ):
104104
print "Running testscript " + testScripts[i] + "..."
105-
subprocess.call(rpcTestDir + testScripts[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
105+
subprocess.check_call(rpcTestDir + testScripts[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
106106
#exit if help is called so we print just one set of instructions
107107
p = re.compile(" -h| --help")
108108
if p.match(passOn):
@@ -113,6 +113,6 @@
113113
if ('-extended' in opts or testScriptsExt[i] in opts
114114
or re.sub(".py$", "", testScriptsExt[i]) in opts):
115115
print "Running 2nd level testscript " + testScriptsExt[i] + "..."
116-
subprocess.call(rpcTestDir + testScriptsExt[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
116+
subprocess.check_call(rpcTestDir + testScriptsExt[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
117117
else:
118118
print "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled"

0 commit comments

Comments
 (0)