[Gradle] Don't fail TC configuration on expected OOM in test
Test produces as expected OOM exception, but it should not output test logs into build logs. As TeamCity will parse them and fail because build logs contains OOM which is false-positive.
This commit is contained in:
committed by
Space Team
parent
4d88b8b691
commit
85644bbbf6
+4
-2
@@ -114,8 +114,10 @@ class KotlinDaemonIT : KGPDaemonsBaseTest() {
|
||||
)
|
||||
|
||||
buildAndFail("assemble") {
|
||||
assertOutputContains("Not enough memory to run compilation. Try to increase it via 'gradle.properties':")
|
||||
assertOutputContains("kotlin.daemon.jvmargs=-Xmx<size>")
|
||||
// 'assertOutputContains' is not suitable here as test produces OOM which TC will false-positively treat as
|
||||
// whole configuration error. So we should not output test logs into build logs.
|
||||
assert(output.contains("Not enough memory to run compilation. Try to increase it via 'gradle.properties':"))
|
||||
assert(output.contains("kotlin.daemon.jvmargs=-Xmx<size>"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user