From 0274192241a410b799c84024cdc56ef93731fbc3 Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Tue, 21 Dec 2021 11:58:14 +0300 Subject: [PATCH] [JS] shorten the paths Otherwise test path lengths exceed 255 limit on Windows --- .../services/configuration/JsEnvironmentConfigurator.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt index 1f5fe997548..d673f3ac075 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt @@ -53,11 +53,12 @@ class JsEnvironmentConfigurator(testServices: TestServices) : EnvironmentConfigu const val TEST_DATA_DIR_PATH = "js/js.translator/testData" const val OLD_MODULE_SUFFIX = "_old" + // Keep names short to keep path lengths under 255 for Windows private val outputDirByMode = mapOf( - TranslationMode.FULL to "outputDir", - TranslationMode.FULL_DCE to "dceOutputDir", - TranslationMode.PER_MODULE to "perModuleOutputDir", - TranslationMode.PER_MODULE_DCE to "perModuleDceOutputDir" + TranslationMode.FULL to "out", + TranslationMode.FULL_DCE to "outMin", + TranslationMode.PER_MODULE to "outPm", + TranslationMode.PER_MODULE_DCE to "outPmMin" ) private const val OUTPUT_KLIB_DIR_NAME = "outputKlibDir"