use policy for home path

This commit is contained in:
Dennis Ushakov
2018-10-25 13:25:05 +03:00
parent cb2135f4ce
commit 2d673c65c5
@@ -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<T extends ModuleFixtureBuilder>
*/
@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();
}