Skip to content

Commit

Permalink
make this one thing look nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 committed Nov 8, 2024
1 parent 8904dc9 commit 88f6623
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SmokeTest(
result.appendLine("loaderVersion=${loaderVersion}")
result.appendLine("jvmVersion=${jvmVersion}")
result.appendLine("extraArgs=[${extraArgs.joinToString(", ")}]")
result.appendLine("mods=[${dependencies.joinToString(", ") { it.split(":")[1] }}]")
result.append("mods=[${dependencies.joinToString(", ") { it.split(":")[1] }}]")

return result.toString()
}
Expand Down Expand Up @@ -235,14 +235,16 @@ class SmokeTest(

if (failedThreads.isNotEmpty()) {
failedThreads.forEach { thread ->
project.logger.error(
"Config ${thread.config.name} failed!\n" +
"> STAGE: ${thread.stage}\n" +
"> CONFIG: {\n${thread.config}}\n" +
"> COMMAND: [${thread.command.joinToString(", ")}]\n" +
"> FAILURE REASON: ${thread.failureReason}\n" +
"> INSTANCE PATH: ${thread.instancePath}\n"
)
project.logger.error(listOf(
"Config ${thread.config.name} failed!",
"> STAGE: ${thread.stage}",
"> CONFIG: {",
thread.config.toString().prependIndent("\t"),
"}",
"> COMMAND: [${thread.command.joinToString(", ")}]",
"> FAILURE REASON: ${thread.failureReason}",
"> INSTANCE PATH: ${thread.instancePath}"
).joinToString("\n"))
}
error("${failedThreads.size} smoke test config(s) failed. See logs for more details.")
}
Expand Down

0 comments on commit 88f6623

Please sign in to comment.