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 c196920d20
commit 9ac24ff2fa
No known key found for this signature in database

View File

@ -128,7 +128,9 @@ template multinodesuite*(name: string, body: untyped) =
raiseMultiNodeSuiteError "Cannot start node at nodeIdx " & $nodeIdx &
", not enough eth accounts."
let datadir = getTempDirName(starttime, role, roleIdx)
let datadir =
getTempDir() / "Codex" / sanitize(TestId) / sanitize(currentTestName) /
sanitize($starttime) / sanitize($role & "_" & $roleIdx)
try:
if config.logFile.isSome or DebugCodexNodes: