testFramework [starter]: better process info output

GitOrigin-RevId: 853cb18824a8bba9ce441a31da797e433831656c
This commit is contained in:
Anastasia Katsman
2026-02-16 18:27:10 +00:00
committed by intellij-monorepo-bot
parent 71048f8c57
commit ca499b2744
@@ -54,9 +54,9 @@ fun findAndKillLeftoverProcessesFromTestRuns(reportErrors: Boolean = false) {
val message = "Unexpected running processes were detected after IDE was stopped ${processInfosToKill.joinToString(", ") { it.name }}"
CIServer.instance.reportTestFailure(testName = message,
message = message + "\n" +
processInfosToKill.joinToString(", ") { "Process:[Name:${it.name},Id:${it.pid}]\n" } + "\n" +
processInfosToKill.joinToString(", ") { "Process:[Name:${it.name}, Id:${it.pid}]" } + "\n\n" +
"Please investigate if the process should have been stopped together with the IDE, it means it is a bug, you can raise a YT ticket and mute the exception.\n" +
"If it is an expected behaviour, it is recommended to add a call `${::findAndKillProcesses}` with appropriate arguments in @After/@AfterEach.\n" +
"If it is an expected behaviour, it is recommended to add a call `${::findAndKillProcesses}` with appropriate arguments in @After/@AfterEach.\n\n" +
"Processes were collected based on command line, containing '${
substringToSearch.joinToString(", ")
}'.\n" +