ScriptGenTest: search classes in JPS from native IDEA gradle import output too

This commit is contained in:
Sergey Rostov
2018-12-13 10:41:11 +03:00
parent 8d8d6ece88
commit c6b4117fb9
@@ -43,7 +43,12 @@ class ScriptGenTest : CodegenTestCase() {
super.setUp()
additionalDependencies =
System.getenv("PROJECT_CLASSES_DIRS")?.split(File.pathSeparator)?.map { File(it) }
?: listOf("compiler/build/classes/kotlin/test", "build/compiler/classes/kotlin/test", "out/test/compiler.test")
?: listOf(
"compiler/build/classes/kotlin/test",
"build/compiler/classes/kotlin/test",
"out/test/compiler.test",
"out/test/compiler_test"
)
.mapNotNull { File(it).canonicalFile.takeIf { it.isDirectory } }
.takeIf { it.isNotEmpty() }
?: throw IllegalStateException("Unable to get classes output dirs, set PROJECT_CLASSES_DIRS environment variable")