attempt to fix chained test failures

- commenting out potentially "bad" test
- calculating homedir only once
This commit is contained in:
Ilya Chernikov
2017-09-15 16:49:31 +02:00
parent e92ef59873
commit dfb0a47260
2 changed files with 11 additions and 0 deletions
@@ -342,8 +342,15 @@ public class KotlinTestUtils {
return getHomeDirectory() + "/compiler/testData";
}
private static String homeDir = computeHomeDirectory();
@NotNull
public static String getHomeDirectory() {
return homeDir;
}
@NotNull
private static String computeHomeDirectory() {
String userDir = System.getProperty("user.dir");
File dir = new File(userDir == null ? "." : userDir);
return FileUtil.toCanonicalPath(dir.getAbsolutePath());