ensure SPEC_VERSION stays synchronized with actual spec tested
This commit is contained in:
parent
49e9167b28
commit
044ced53be
|
@ -40,12 +40,9 @@ type
|
|||
TestSizeError* = object of ValueError
|
||||
|
||||
const
|
||||
FixturesDir* = currentSourcePath.rsplit(DirSep, 1)[0] / ".." / ".." / "vendor" / "nim-eth2-scenarios"
|
||||
SszTestsDir* =
|
||||
when ETH2_SPEC == "v0.12.1":
|
||||
FixturesDir/"tests-v0.12.1"
|
||||
else:
|
||||
FixturesDir/"tests-v0.11.3"
|
||||
FixturesDir* =
|
||||
currentSourcePath.rsplit(DirSep, 1)[0] / ".." / ".." / "vendor" / "nim-eth2-scenarios"
|
||||
SszTestsDir* = FixturesDir / "tests-v" & SPEC_VERSION
|
||||
|
||||
proc parseTest*(path: string, Format: typedesc[Json or SSZ], T: typedesc): T =
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue