From eb5df2983446d7e7ec6e2987320527b7ce1a5784 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Wed, 19 Jan 2022 00:41:21 +0300 Subject: [PATCH] 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) ... --- prepare/compiler-client-embeddable/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/prepare/compiler-client-embeddable/build.gradle.kts b/prepare/compiler-client-embeddable/build.gradle.kts index 9033ff3b1a4..9fac07e951d 100644 --- a/prepare/compiler-client-embeddable/build.gradle.kts +++ b/prepare/compiler-client-embeddable/build.gradle.kts @@ -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 }