From 2d673c65c5a6912e5955f38867568f03e34a33ff Mon Sep 17 00:00:00 2001 From: Dennis Ushakov Date: Thu, 25 Oct 2018 13:21:52 +0300 Subject: [PATCH] use policy for home path --- .../testFramework/fixtures/CodeInsightFixtureTestCase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightFixtureTestCase.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightFixtureTestCase.java index 78cf07afd41c..8a9f27af57f4 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightFixtureTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightFixtureTestCase.java @@ -1,7 +1,6 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.testFramework.fixtures; -import com.intellij.openapi.application.PathManager; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; @@ -74,7 +73,7 @@ public abstract class CodeInsightFixtureTestCase */ @NonNls protected final String getTestDataPath() { - String path = isCommunity() ? PlatformTestUtil.getCommunityPath() : PathManager.getHomePath(); + String path = isCommunity() ? PlatformTestUtil.getCommunityPath() : IdeaTestExecutionPolicy.getHomePathWithPolicy(); return path.replace(File.separatorChar, '/') + getBasePath(); }