Skip to content

Commit 76f452a

Browse files
ALikhachevSpace Team
authored andcommitted
[Gradle] Fix IC assertion in testAndroidDaggerIC
It should use regular utilities for checking compiled sources. BTA produces debug IC logs in slightly different form which is already handled in the utilities. Required for KT-78199
1 parent 7be6c0c commit 76f452a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/android/Kapt3AndroidIncrementalIT.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,8 @@ open class Kapt3AndroidIncrementalIT : Kapt3BaseIT() {
109109

110110
// Output is combined with previous build, but we are only interested in the compilation
111111
// from second build to avoid false positive test failure
112-
val filteredOutput = output
113-
.lineSequence()
114-
.filter { it.contains("[KOTLIN] compile iteration:") }
115-
.drop(1)
116-
.joinToString(separator = "/n")
117-
assertCompiledKotlinSources(listOf(androidModuleKt).relativizeTo(projectPath), output = filteredOutput)
112+
val compilationTaskOutput = getOutputForTask(":app:compileDebugKotlin")
113+
assertCompiledKotlinSources(listOf(androidModuleKt).relativizeTo(projectPath), output = compilationTaskOutput)
118114
}
119115
}
120116
}

0 commit comments

Comments
 (0)