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: 80c99eceff
This commit is contained in:
Alexey Tsvetkov
2019-04-15 19:06:39 +03:00
parent 321abd7180
commit 5ef534b8a5
@@ -321,7 +321,6 @@ abstract class AbstractIncrementalJpsTest(
UsefulTestCase.assertSameLinesWithFile(buildLogFile.absolutePath, logs)
val lastMakeResult = otherMakeResults.last()
rebuildAndCheckOutput(lastMakeResult)
clearCachesRebuildAndCheckOutput(lastMakeResult)
}
}