add test name to datadir path

avoids reusing datadirs between tests
This commit is contained in:
Eric 2025-02-06 16:34:42 +11:00
parent 4119dd6a53
commit e39497bf37
No known key found for this signature in database

View File

@ -127,8 +127,8 @@ template multinodesuite*(name: string, body: untyped) =
", not enough eth accounts."
let datadir =
getTempDir() / "Codex" / sanitize(TestId) / sanitize($starttime) /
sanitize($role & "_" & $roleIdx)
getTempDir() / "Codex" / sanitize(TestId) / sanitize(currentTestName) /
sanitize($starttime) / sanitize($role & "_" & $roleIdx)
try:
if config.logFile.isSome or DebugCodexNodes: