Skip to content

Commit

Permalink
[Gradle, JS] Fix formatting logic
Browse files Browse the repository at this point in the history
#KT-38109 fixed
  • Loading branch information
ilgonmic committed Apr 16, 2020
1 parent 7347c44 commit 47d7424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/

package org.jetbrains.kotlin.gradle.internal.testing

import org.gradle.api.internal.tasks.testing.TestExecuter
Expand Down Expand Up @@ -78,7 +83,9 @@ class TCServiceMessagesTestExecutor(

override fun stopNow() {
shouldStop = true
execHandle?.abort()
if (::execHandle.isInitialized) {
execHandle.abort()
}
outputReaderThread?.join()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ class KotlinKarma(override val compilation: KotlinJsCompilation) :
progressLogger.progress(value)

parseConsole(value)
super.printNonTestOutput(text)
}

private fun parseConsole(text: String) {
Expand All @@ -446,6 +445,8 @@ class KotlinKarma(override val compilation: KotlinJsCompilation) :
INFO, LOG -> log.info(nonColoredMessage)
DEBUG -> log.debug(nonColoredMessage)
}
} else {
super.printNonTestOutput(text)
}
}

Expand Down

0 comments on commit 47d7424

Please sign in to comment.