[Gradle, MPP] Do not read tests state file when it's absent
#KT-55134 Fixed
This commit is contained in:
+1
@@ -76,6 +76,7 @@ internal abstract class TestReportService : BuildService<TestReportService.TestR
|
|||||||
|
|
||||||
private fun readPreviouslyFailedTasks(): MutableSet<String> {
|
private fun readPreviouslyFailedTasks(): MutableSet<String> {
|
||||||
val failedTasksSet: MutableSet<String> = ConcurrentHashMap.newKeySet()
|
val failedTasksSet: MutableSet<String> = ConcurrentHashMap.newKeySet()
|
||||||
|
if (!binaryStateFile.exists()) return failedTasksSet
|
||||||
try {
|
try {
|
||||||
ObjectInputStream(FileInputStream(binaryStateFile)).use {
|
ObjectInputStream(FileInputStream(binaryStateFile)).use {
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
|||||||
Reference in New Issue
Block a user