mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +00:00
Do not use test suite if it does not have post-state.
This commit is contained in:
parent
ac776926f1
commit
c8c738e2c7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user