mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-26 00:21:29 +00:00
Fix TCServiceMessagesClient not removing an empty line prefix on Windows
This commit is contained in:
@@ -79,7 +79,13 @@ internal open class TCServiceMessagesClient(
|
||||
protected open fun getSuiteName(message: BaseTestSuiteMessage) = message.suiteName
|
||||
|
||||
override fun regularText(text: String) {
|
||||
val actualText = if (afterMessage && settings.ignoreLineEndingAfterMessage) text.removePrefix("\n") else text
|
||||
val actualText = if (afterMessage && settings.ignoreLineEndingAfterMessage)
|
||||
when {
|
||||
text.startsWith("\r\n") -> text.removePrefix("\r\n")
|
||||
else -> text.removePrefix("\n")
|
||||
}
|
||||
else text
|
||||
|
||||
if (actualText.isNotEmpty()) {
|
||||
log.kotlinDebug { "TCSM stdout captured: $actualText" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user