mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Merge #8836: bitcoin-util-test.py should fail if the output file is empty
da94697
bitcoin-util-test.py should fail if the output file is empty (jnewbery)
This commit is contained in:
commit
90adfabd5d
@ -24,6 +24,9 @@ def bctest(testDir, testObj, exeext):
|
|||||||
if "output_cmp" in testObj:
|
if "output_cmp" in testObj:
|
||||||
outputFn = testObj['output_cmp']
|
outputFn = testObj['output_cmp']
|
||||||
outputData = open(testDir + "/" + outputFn).read()
|
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)
|
proc = subprocess.Popen(execrun, stdin=stdinCfg, stdout=subprocess.PIPE, stderr=subprocess.PIPE,universal_newlines=True)
|
||||||
try:
|
try:
|
||||||
outs = proc.communicate(input=inputData)
|
outs = proc.communicate(input=inputData)
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"txid": "cf90229625e9eb10f6be8156bf6aa5ec2eca19a42b1e05c11f3029b560a32e13",
|
||||||
|
"version": 1,
|
||||||
|
"locktime": 0,
|
||||||
|
"vin": [
|
||||||
|
],
|
||||||
|
"vout": [
|
||||||
|
{
|
||||||
|
"value": 0.00,
|
||||||
|
"n": 0,
|
||||||
|
"scriptPubKey": {
|
||||||
|
"asm": "",
|
||||||
|
"hex": "",
|
||||||
|
"type": "nonstandard"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hex": "01000000000100000000000000000000000000"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user