From dc9f7351a19a42baf7d0bea2efbe027686aa0445 Mon Sep 17 00:00:00 2001 From: kdeme Date: Wed, 16 Oct 2019 16:42:48 +0200 Subject: [PATCH] Make json test actually fail when individual test fails --- tests/rlp/util/json_testing.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/rlp/util/json_testing.nim b/tests/rlp/util/json_testing.nim index a751dda..f2dbbce 100644 --- a/tests/rlp/util/json_testing.nim +++ b/tests/rlp/util/json_testing.nim @@ -54,6 +54,7 @@ proc runTests*(filename: string) = testStatus "FAILED" echo " ACCEPTED MALFORMED BYTES: ", output.str echo " INTERPRETATION:\n", inspectOutput + program_result = 1 continue else: if input.kind == JString and input.str.len != 0 and input.str[0] == '#': @@ -68,6 +69,7 @@ proc runTests*(filename: string) = testStatus "FAILED" echo " EXPECTED BYTES: ", expected echo " ACTUAL BYTES: ", actual + program_result = 1 continue testStatus "OK"