update after rebase

This commit is contained in:
Eric 2025-03-25 17:24:42 +11:00
parent af5759b053
commit 18a7f5adab
No known key found for this signature in database
3 changed files with 10 additions and 5 deletions

View File

@ -68,8 +68,6 @@ template withLock(lock: AsyncLock, body: untyped) =
except AsyncLockError as parent:
raiseMultiNodeSuiteError "lock error", parent
template multinodesuite*(name: string, body: untyped) =
asyncchecksuite name:
# Following the problem described here:
@ -163,9 +161,7 @@ template multinodesuite*(name: string, body: untyped) =
raiseMultiNodeSuiteError "Cannot start node at nodeIdx " & $nodeIdx &
", not enough eth accounts."
let datadir =
getTempDir() / "Codex" / sanitize(TestId) / sanitize(currentTestName) /
sanitize($starttime) / sanitize($role & "_" & $roleIdx)
let datadir = getDataDir(TestId, currentTestName, $starttime, $role, some roleIdx)
try:
if config.logFile.isSome or CodexLogToFile:

View File

@ -82,3 +82,11 @@ when defined(windows):
let cmd = &"{absolutePath(path)} kill {processName} \"{matchingCriteria}\""
trace "Forcefully killing windows process", processName, matchingCriteria, cmd
return await execCommandEx(cmd, timeout = 5.seconds)
proc getDataDir*(testId, testName, startTime, role: string, index = int.none): string =
var suffix = role
if idx =? index:
suffix &= "_" & $idx
getTempDir() / "Codex" / sanitize(testId) / sanitize(testName) / sanitize(startTime) /
sanitize(suffix)

View File

@ -124,3 +124,4 @@ when isMainModule:
import ./integration/testproofs
import ./integration/testvalidator
import ./integration/testecbug
import ./integration/testrestapivalidation