From 91bb57c5a3abcf9e9c5b1925b0e4f59f24227df0 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Mon, 4 Dec 2017 16:34:05 +0300 Subject: [PATCH] Make general IC logs similar to JPS IC logs --- ...stractIncrementalCompilerRunnerTestBase.kt | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalCompilerRunnerTestBase.kt b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalCompilerRunnerTestBase.kt index 77f79a7253f..ceda8873710 100644 --- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalCompilerRunnerTestBase.kt +++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalCompilerRunnerTestBase.kt @@ -108,20 +108,17 @@ abstract class AbstractIncrementalCompilerRunnerTestBase, errors: Collection, includeErrors: Boolean = true): String { val sb = StringBuilder() - sb.appendLine("<======= STEP $step =======>") - sb.appendLine() - sb.appendLine("Compiled kotlin sources:") - ktSources.toSet().toTypedArray().sortedArray().forEach { sb.appendLine(it) } + sb.appendLine("================ Step #$step =================") sb.appendLine() + sb.appendLine("Compiling files:") + ktSources.toSet().toTypedArray().sortedArray().forEach { sb.appendLine(" $it") } + sb.appendLine("End of files") + sb.appendLine("Exit code: ${if (errors.isEmpty()) "OK" else "ABORT"}") - if (errors.isEmpty()) { - sb.appendLine("SUCCESS") - } - else { - sb.appendLine("FAILURE") - if (includeErrors) { - errors.filter(String::isNotEmpty).forEach { sb.appendLine(it) } - } + if (errors.isNotEmpty() && includeErrors) { + sb.appendLine("------------------------------------------") + sb.appendLine("COMPILATION FAILED") + errors.filter(String::isNotEmpty).forEach { sb.appendLine(it) } } return sb.toString()