From 486c3a2affffdd4bf5050c88006706a84c84ac21 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Mon, 13 Nov 2017 13:19:56 +0100 Subject: [PATCH] Do not depende on the ideaSdk location in integration tests assume that tests are always run from the project's root --- .../kotlin/integration/KotlinIntegrationTestBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java b/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java index 1f490735c68..1bd98e9348a 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java @@ -140,7 +140,8 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir { } protected static File getKotlinProjectHome() { - return new File(PathManager.getHomePath()).getParentFile(); + // assuming that tests are always run from the project's root + return new File(System.getProperty("user.dir")); } private static class OutputListener extends ProcessAdapter {