From 18e9dc3529c0c7e7b9752620235f7b6eb5b78cfd Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:40:48 +1100 Subject: [PATCH] formatting --- tests/testIntegration.nim | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/tests/testIntegration.nim b/tests/testIntegration.nim index 5c95244f..b9fc8050 100644 --- a/tests/testIntegration.nim +++ b/tests/testIntegration.nim @@ -45,7 +45,6 @@ const TestTimeout {.intdefine.} = 60 const EnableParallelTests {.booldefine.} = true proc setupLogging(logFile: string) = - try: let success = defaultChroniclesStream.outputs[0].open(logFile, fmAppend) doAssert success, "Failed to open log file: " & logFile @@ -60,18 +59,18 @@ proc run(): Future[bool] {.async: (raises: []).} = currentSourcePath.parentDir() / "integration" / "logs" / sanitize(startTime & "-IntegrationTests") try: - createDir(logsDir) - #!fmt: off - styledEcho bgWhite, fgBlack, styleBright, - "\n\n ", - styleUnderscore, - "ℹ️ LOGS AVAILABLE ℹ️\n\n", - resetStyle, bgWhite, fgBlack, styleBright, - """ Logs for this run will be available at:""", - resetStyle, bgWhite, fgBlack, - &"\n\n {logsDir}\n\n", - resetStyle, bgWhite, fgBlack, styleBright, - " NOTE: For CI runs, logs will be attached as artefacts\n" + createDir(logsDir) + #!fmt: off + styledEcho bgWhite, fgBlack, styleBright, + "\n\n ", + styleUnderscore, + "ℹ️ LOGS AVAILABLE ℹ️\n\n", + resetStyle, bgWhite, fgBlack, styleBright, + """ Logs for this run will be available at:""", + resetStyle, bgWhite, fgBlack, + &"\n\n {logsDir}\n\n", + resetStyle, bgWhite, fgBlack, styleBright, + " NOTE: For CI runs, logs will be attached as artefacts\n" #!fmt: on except IOError as e: raiseAssert "Failed to create log directory and echo log message: " & e.msg