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