From 5ef534b8a581c21942bc730cf52565979481da41 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Mon, 15 Apr 2019 19:06:39 +0300 Subject: [PATCH] Rebuild once after each JPS test After each test we rebuild everything, then we compare incremental caches and output with caches and output after rebuild. For some reason we did rebuild and comparison twice per test. This seems excessive. Removing the second rebuild speeds up JPS tests by ~15% compared to the result before all optimizations Original commit: 80c99eceffedfb52947317538d83c08c6e61c42a --- .../org/jetbrains/kotlin/jps/build/AbstractIncrementalJpsTest.kt | 1 - 1 file changed, 1 deletion(-) 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 cfcd0b52056..3282187b000 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 @@ -321,7 +321,6 @@ abstract class AbstractIncrementalJpsTest( UsefulTestCase.assertSameLinesWithFile(buildLogFile.absolutePath, logs) val lastMakeResult = otherMakeResults.last() - rebuildAndCheckOutput(lastMakeResult) clearCachesRebuildAndCheckOutput(lastMakeResult) } }