mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix ConfigImportHelperTest: always create config_dir/options/other.xml
Since 17eb4db1 we use a more precise way to identify the config directory: it should contain one of common options files inside. The test used to create these files only for some tests. Relates to IDEA-199232 GitOrigin-RevId: b7513b80567e89cd6b34cf456271e4d43d4519d8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
67e3801a6c
commit
284aaef710
+2
-2
@@ -159,14 +159,14 @@ class ConfigImportHelperTest : BareTestFixtureTestCase() {
|
||||
.isDirectoryNotContaining { it.fileName == oldPluginZip.fileName }
|
||||
}
|
||||
|
||||
private fun createConfigDir(version: String, modern: Boolean = version >= "2020.1", product: String = "IntelliJIdea", storageTS: Long = 0): Path {
|
||||
private fun createConfigDir(version: String, modern: Boolean = version >= "2020.1", product: String = "IntelliJIdea", storageTS: Long = 100): Path {
|
||||
val path = when {
|
||||
modern -> PathManager.getDefaultConfigPathFor("${product}${version}")
|
||||
SystemInfo.isMac -> "${SystemProperties.getUserHome()}/Library/Preferences/${product}${version}"
|
||||
else -> "${SystemProperties.getUserHome()}/.${product}${version}/config"
|
||||
}
|
||||
val dir = Files.createDirectories(memoryFs.fs.getPath(path).normalize())
|
||||
if (storageTS > 0) writeStorageFile(dir, storageTS)
|
||||
writeStorageFile(dir, storageTS)
|
||||
return dir
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user