diff --git a/intellij.tools.ide.starter/src/com/intellij/ide/starter/path/GlobalPaths.kt b/intellij.tools.ide.starter/src/com/intellij/ide/starter/path/GlobalPaths.kt index b18eb662..bd56bfe8 100644 --- a/intellij.tools.ide.starter/src/com/intellij/ide/starter/path/GlobalPaths.kt +++ b/intellij.tools.ide.starter/src/com/intellij/ide/starter/path/GlobalPaths.kt @@ -41,14 +41,9 @@ abstract class GlobalPaths(val checkoutDir: Path) { (testHomePath / "cache").createDirectories() } - /** - * Cache directory on local or remote machine/target/environment (depends on the configuration of the test) - */ - open val cacheDirectory = localCacheDirectory - - fun getCacheDirectoryFor(entity: String): Path = (cacheDirectory / entity).createDirectories() + open fun getCacheDirectoryFor(entity: String): Path = (localCacheDirectory / entity).createDirectories() - val cacheDirForProjects: Path get() = getCacheDirectoryFor("projects") + open val cacheDirForProjects: Path get() = getCacheDirectoryFor("projects") companion object { val instance: GlobalPaths diff --git a/intellij.tools.ide.starter/src/com/intellij/ide/starter/utils/FileSystem.kt b/intellij.tools.ide.starter/src/com/intellij/ide/starter/utils/FileSystem.kt index f3bc4122..54ac1d95 100644 --- a/intellij.tools.ide.starter/src/com/intellij/ide/starter/utils/FileSystem.kt +++ b/intellij.tools.ide.starter/src/com/intellij/ide/starter/utils/FileSystem.kt @@ -228,9 +228,9 @@ object FileSystem { appendLine(Files.getFileStore(paths.testHomePath).getDiskInfo()) appendLine() appendLine(paths.testHomePath.getDirectoryTreePresentableSizes(3)) - if (paths.cacheDirectory != paths.testHomePath / "cache") { - appendLine("Agent persistent cache directory disk usage ${paths.cacheDirectory}") - appendLine(paths.cacheDirectory.getDirectoryTreePresentableSizes(2)) + if (paths.localCacheDirectory != paths.testHomePath / "cache") { + appendLine("Agent persistent cache directory disk usage ${paths.localCacheDirectory}") + appendLine(paths.localCacheDirectory.getDirectoryTreePresentableSizes(2)) } appendLine() appendLine("Directories' size from ${paths.devServerDirectory}")