Show compiler error in diff if JPS IC test fails
This commit is contained in:
committed by
Space Team
parent
0cebf2b39f
commit
32bc2b55ed
+5
-3
@@ -337,11 +337,13 @@ abstract class AbstractIncrementalJpsTest(
|
||||
|
||||
buildLogFile?.let {
|
||||
val logs = createBuildLog(otherMakeResults)
|
||||
val expected = excludeCompilerErrorMessagesFromLog(File(buildLogFile.absolutePath).readText())
|
||||
val buildLog = File(buildLogFile.absolutePath).readText()
|
||||
val expected = excludeCompilerErrorMessagesFromLog(buildLog)
|
||||
val actual = excludeCompilerErrorMessagesFromLog(logs)
|
||||
|
||||
UsefulTestCase.assertEquals(expected.trimEnd(), actual.trimEnd())
|
||||
|
||||
if(expected.trimEnd() != actual.trimEnd()) {
|
||||
UsefulTestCase.assertEquals(buildLog, logs)
|
||||
}
|
||||
val lastMakeResult = otherMakeResults.last()
|
||||
clearCachesRebuildAndCheckOutput(lastMakeResult)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user