aboutsummaryrefslogtreecommitdiff
path: root/src/test/bctest.py
diff options
context:
space:
mode:
authorjnewbery <[email protected]>2016-09-29 10:13:16 -0400
committerjnewbery <[email protected]>2016-09-29 10:16:56 -0400
commitda9469770847df56e67e629986129a087b5bd7a5 (patch)
tree33aa885ce26e10517d7863a2303a362f68dee280 /src/test/bctest.py
parentMerge #8827: [qa] Split up slow RPC calls to avoid pruning test timeouts (diff)
downloaddiscoin-da9469770847df56e67e629986129a087b5bd7a5.tar.xz
discoin-da9469770847df56e67e629986129a087b5bd7a5.zip
bitcoin-util-test.py should fail if the output file is empty
Diffstat (limited to 'src/test/bctest.py')
-rw-r--r--src/test/bctest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/bctest.py b/src/test/bctest.py
index 8105b87ff..39a27fcd0 100644
--- a/src/test/bctest.py
+++ b/src/test/bctest.py
@@ -24,6 +24,9 @@ def bctest(testDir, testObj, exeext):
if "output_cmp" in testObj:
outputFn = testObj['output_cmp']
outputData = open(testDir + "/" + outputFn).read()
+ if not outputData:
+ print("Output data missing for " + outputFn)
+ sys.exit(1)
proc = subprocess.Popen(execrun, stdin=stdinCfg, stdout=subprocess.PIPE, stderr=subprocess.PIPE,universal_newlines=True)
try:
outs = proc.communicate(input=inputData)