[Gradle, MPP] Do not read tests state file when it's absent

#KT-55134 Fixed
This commit is contained in:
Alexander Likhachev
2022-11-25 03:08:04 +01:00
parent 50e92d2238
commit 51aa284dd1
@@ -76,6 +76,7 @@ internal abstract class TestReportService : BuildService<TestReportService.TestR
private fun readPreviouslyFailedTasks(): MutableSet<String> {
val failedTasksSet: MutableSet<String> = ConcurrentHashMap.newKeySet()
if (!binaryStateFile.exists()) return failedTasksSet
try {
ObjectInputStream(FileInputStream(binaryStateFile)).use {
@Suppress("UNCHECKED_CAST")