From feb0e6c6cf9f415072bb755dc42f0775b68215ee Mon Sep 17 00:00:00 2001 From: Nikolay Chashnikov Date: Fri, 2 May 2025 08:42:21 +0200 Subject: [PATCH] [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 --- .../org/jetbrains/intellij/build/IdeaCommunityBuildTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/tests/testSrc/org/jetbrains/intellij/build/IdeaCommunityBuildTest.kt b/build/tests/testSrc/org/jetbrains/intellij/build/IdeaCommunityBuildTest.kt index 93c1e3de8a9d..105831ad98f1 100644 --- a/build/tests/testSrc/org/jetbrains/intellij/build/IdeaCommunityBuildTest.kt +++ b/build/tests/testSrc/org/jetbrains/intellij/build/IdeaCommunityBuildTest.kt @@ -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, ) {