[Pill] Fix unit test running

This commit is contained in:
Yan Zhulanow
2022-08-04 17:36:01 +09:00
committed by teamcity
parent 8e494ceb99
commit 47b5ea0fc7
+2 -1
View File
@@ -30,7 +30,7 @@ fun runPillTask(taskName: String) {
val runMethod = pillImporterClass.declaredMethods.single { it.name == "run" }
require(Modifier.isStatic(runMethod.modifiers))
val platformDir = IntellijRootUtils.getIntellijRootDir(project)
val platformDir = rootProject.ideaHomePathForTests()
val resourcesDir = File(project.projectDir, "resources")
val isIdePluginAttached = project.rootProject.intellijSdkVersionForIde() != null
@@ -41,6 +41,7 @@ val jar: Jar by tasks
val pill by tasks.creating {
dependsOn(jar)
dependsOn(":createIdeaHomeForTests")
doLast { runPillTask("pill") }
}