[build script tests] load project configuration from the community project when running IdeaCommunityBuildTest

The test is supposed to check building IDEA Community from intellij-community sources, so it should work this way even if it's started from the ultimate project.

GitOrigin-RevId: 998d7ebe01282b4031ca8cea772aef6f7a2d699d
This commit is contained in:
Nikolay Chashnikov
2025-05-02 12:03:24 +00:00
committed by intellij-monorepo-bot
parent e25cabae46
commit feb0e6c6cf
@@ -11,6 +11,7 @@ import org.jetbrains.intellij.build.BuildPaths.Companion.COMMUNITY_ROOT
import org.jetbrains.intellij.build.impl.BuildContextImpl
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInfo
import kotlin.io.path.Path
class IdeaCommunityBuildTest {
@Test
@@ -18,7 +19,7 @@ class IdeaCommunityBuildTest {
val homePath = PathManager.getHomeDirFor(javaClass)!!
val productProperties = IdeaCommunityProperties(COMMUNITY_ROOT.communityRoot)
runTestBuild(
homeDir = homePath,
homeDir = Path(PathManager.getCommunityHomePath()),
testInfo = testInfo,
productProperties = productProperties,
) {