disable all logging to see if windows passes

This commit is contained in:
Eric 2025-03-18 20:02:46 +11:00
parent c22cc10d48
commit 2d8783f49e
No known key found for this signature in database
2 changed files with 14 additions and 14 deletions

View File

@ -167,7 +167,7 @@ template multinodesuite*(name: string, body: untyped) =
sanitize($starttime) / sanitize($role & "_" & $roleIdx)
try:
if config.logFile.isSome or CodexLogToFile:
if config.logFile.isSome: # or CodexLogToFile:
try:
let updatedLogFile = getLogFile(
CodexLogsDir, starttime, name, currentTestName, $role, some roleIdx
@ -360,15 +360,15 @@ template multinodesuite*(name: string, body: untyped) =
except CatchableError as e:
raiseMultiNodeSuiteError "Failed to get node info: " & e.msg, e
setupAll:
# When this file is run with `-d:chronicles_sinks=textlines[file]`, we
# need to set the log file path at runtime, otherwise chronicles didn't seem to
# create a log file even when using an absolute path
when defaultChroniclesStream.outputs is (FileOutput,) and CodexLogsDir.len > 0:
let logFile =
CodexLogsDir / sanitize(getAppFilename().extractFilename & ".chronicles.log")
let success = defaultChroniclesStream.outputs[0].open(logFile, fmAppend)
doAssert success, "Failed to open log file: " & logFile
# setupAll:
# # When this file is run with `-d:chronicles_sinks=textlines[file]`, we
# # need to set the log file path at runtime, otherwise chronicles didn't seem to
# # create a log file even when using an absolute path
# when defaultChroniclesStream.outputs is (FileOutput,) and CodexLogsDir.len > 0:
# let logFile =
# CodexLogsDir / sanitize(getAppFilename().extractFilename & ".chronicles.log")
# let success = defaultChroniclesStream.outputs[0].open(logFile, fmAppend)
# doAssert success, "Failed to open log file: " & logFile
setup:
if var conf =? nodeConfigs.hardhat:

View File

@ -438,10 +438,10 @@ proc teardownTest(
stdoutBytes = output.stdOut.len,
stderrFile = test.logFile("stderr.log"),
stderrBytes = output.stdErr.len
test.logFile("stdout.log").appendFile(output.stdOut.stripAnsi)
if test.status == IntegrationTestStatus.Error or
(test.status == IntegrationTestStatus.Failed and test.output.isErrorLike):
test.logFile("stderr.log").appendFile(output.stdErr.stripAnsi)
# test.logFile("stdout.log").appendFile(output.stdOut.stripAnsi)
# if test.status == IntegrationTestStatus.Error or
# (test.status == IntegrationTestStatus.Failed and test.output.isErrorLike):
# test.logFile("stderr.log").appendFile(output.stdErr.stripAnsi)
except AsyncTimeoutError:
error "Timeout waiting for stdout or stderr stream contents, nothing will be written to file"
except IOError as e: