From 431f77ddb4194d5b3357c4b4126de1dc9dac6126 Mon Sep 17 00:00:00 2001 From: "Aleksei.Cherepanov" Date: Fri, 20 Oct 2023 12:29:31 +0200 Subject: [PATCH] Disable mappings dump creating for JPS graph Disable mappings dump for tests when JPS graph implementation is enabled --- .../kotlin/jps/build/AbstractIncrementalJpsTest.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractIncrementalJpsTest.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractIncrementalJpsTest.kt index e75be40736a..3db5d697135 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractIncrementalJpsTest.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractIncrementalJpsTest.kt @@ -616,10 +616,11 @@ abstract class AbstractIncrementalJpsTest( private fun createMappingsDump( project: ProjectDescriptor, kotlinContext: KotlinCompileContext, - lookupsDuringTest: Set -) = createKotlinCachesDump(project, kotlinContext, lookupsDuringTest) + "\n\n\n" + - createCommonMappingsDump(project) + "\n\n\n" + - createJavaMappingsDump(project) + lookupsDuringTest: Set, +) = if (System.getProperty("jps.use.dependency.graph", "false").toBoolean()) "" else + createKotlinCachesDump(project, kotlinContext, lookupsDuringTest) + "\n\n\n" + + createCommonMappingsDump(project) + "\n\n\n" + + createJavaMappingsDump(project) internal fun createKotlinCachesDump( project: ProjectDescriptor,