Fix TCServiceMessagesClient not removing an empty line prefix on Windows
This commit is contained in:
+7
-1
@@ -79,7 +79,13 @@ internal open class TCServiceMessagesClient(
|
|||||||
protected open fun getSuiteName(message: BaseTestSuiteMessage) = message.suiteName
|
protected open fun getSuiteName(message: BaseTestSuiteMessage) = message.suiteName
|
||||||
|
|
||||||
override fun regularText(text: String) {
|
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()) {
|
if (actualText.isNotEmpty()) {
|
||||||
log.kotlinDebug { "TCSM stdout captured: $actualText" }
|
log.kotlinDebug { "TCSM stdout captured: $actualText" }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user