Do not use test suite if it does not have post-state.

This commit is contained in:
cheatfate 2024-02-27 13:53:15 +02:00
parent ac776926f1
commit c8c738e2c7
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 2 additions and 1 deletions

View File

@ -35,9 +35,10 @@ proc runTest(consensusFork: static ConsensusFork,
testPath = testDir / path testPath = testDir / path
preState = newClone(parseTest(testPath / "pre.ssz_snappy", preState = newClone(parseTest(testPath / "pre.ssz_snappy",
SSZ, consensusFork.BeaconState)) SSZ, consensusFork.BeaconState))
postState = testPath / "post.ssz_snappy"
blockPath = testPath / "blocks_0.ssz_snappy" blockPath = testPath / "blocks_0.ssz_snappy"
if not(fileExists(blockPath)): if not(fileExists(blockPath)) or not(fileExists(postState)):
discard discard
else: else:
var var