mirror of https://github.com/status-im/nim-eth.git
Make json test actually fail when individual test fails
This commit is contained in:
parent
88563b8494
commit
dc9f7351a1
|
@ -54,6 +54,7 @@ proc runTests*(filename: string) =
|
||||||
testStatus "FAILED"
|
testStatus "FAILED"
|
||||||
echo " ACCEPTED MALFORMED BYTES: ", output.str
|
echo " ACCEPTED MALFORMED BYTES: ", output.str
|
||||||
echo " INTERPRETATION:\n", inspectOutput
|
echo " INTERPRETATION:\n", inspectOutput
|
||||||
|
program_result = 1
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
if input.kind == JString and input.str.len != 0 and input.str[0] == '#':
|
if input.kind == JString and input.str.len != 0 and input.str[0] == '#':
|
||||||
|
@ -68,6 +69,7 @@ proc runTests*(filename: string) =
|
||||||
testStatus "FAILED"
|
testStatus "FAILED"
|
||||||
echo " EXPECTED BYTES: ", expected
|
echo " EXPECTED BYTES: ", expected
|
||||||
echo " ACTUAL BYTES: ", actual
|
echo " ACTUAL BYTES: ", actual
|
||||||
|
program_result = 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
testStatus "OK"
|
testStatus "OK"
|
||||||
|
|
Loading…
Reference in New Issue