Fix flaky CompilerClientIT.testSimpleScript tests
System property `compilerClasspath` in tests references absent file cannot find (.../kotlin/prepare/compiler/build/libs/kotlin-compiler-1.6.255-SNAPSHOT.jar) java.io.FileNotFoundException: cannot find (.../kotlin/prepare/compiler/build/libs/kotlin-compiler-1.6.255-SNAPSHOT.jar) at org.jetbrains.kotlin.compiler.client.CompilerClientIT.filesFromProp(CompilerClientIT.kt:63) at org.jetbrains.kotlin.compiler.client.CompilerClientIT.access$filesFromProp(CompilerClientIT.kt:40) at org.jetbrains.kotlin.compiler.client.CompilerClientIT$compilerClasspath$2.invoke(CompilerClientIT.kt:47) at org.jetbrains.kotlin.compiler.client.CompilerClientIT$compilerClasspath$2.invoke(CompilerClientIT.kt:46) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) ...
This commit is contained in:
committed by
TeamCityServer
parent
22b5d86656
commit
eb5df29834
@@ -40,6 +40,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
projectTest {
|
||||
dependsOn(":kotlin-compiler:jar")
|
||||
systemProperty("kotlin.test.script.classpath", testSourceSet.output.classesDirs.joinToString(File.pathSeparator))
|
||||
val testCompilerClasspathProvider = project.provider { testCompilerClasspath.asPath }
|
||||
val testCompilationClasspathProvider = project.provider { testCompilationClasspath.asPath }
|
||||
|
||||
Reference in New Issue
Block a user