File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ Users can expect that all tests currently living in [ethereum/tests](https://git
26
26
27
27
#### ` consume `
28
28
29
+ - 🐞 Fix consume direct fails for geth blockchain tests ([ #1502 ] ( https://github.com/ethereum/execution-spec-tests/pull/1502 ) ).
30
+
29
31
### 📋 Misc
30
32
31
33
### 🧪 Test Cases
Original file line number Diff line number Diff line change @@ -268,6 +268,18 @@ def consume_blockchain_test(
268
268
f"Unexpected exit code:\n { ' ' .join (command )} \n \n Error:\n { result .stderr } "
269
269
)
270
270
271
+ result_json = json .loads (result .stdout )
272
+ if not isinstance (result_json , list ):
273
+ raise Exception (f"Unexpected result from evm blocktest: { result_json } " )
274
+
275
+ if any (not test_result ["pass" ] for test_result in result_json ):
276
+ exception_text = "Blockchain test failed: \n " + "\n " .join (
277
+ f"{ test_result ['name' ]} : " + test_result ["error" ]
278
+ for test_result in result_json
279
+ if not test_result ["pass" ]
280
+ )
281
+ raise Exception (exception_text )
282
+
271
283
@cache # noqa
272
284
def consume_state_test_file (
273
285
self ,
You can’t perform that action at this time.
0 commit comments