Skip to content

Commit 379a9a3

Browse files
authored
Merge pull request #893 from MarathonLabs/fix/android-remote-test-parser-crash
fix(android): support recovery of am test parser in case process cras…
2 parents ab1920a + 9196b30 commit 379a9a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

vendor/vendor-android/src/main/kotlin/com/malinskiy/marathon/android/adam/AmInstrumentTestParser.kt

+6-2
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,14 @@ class AmInstrumentTestParser(
138138
}
139139
}
140140

141-
is TestRunFailed -> Unit
141+
is TestRunFailed -> {
142+
//Happens on Android Wear if classpath is misconfigured
143+
if (event.error.contains("Process crashed")) {
144+
throw TestAnnotationProducerNotFoundException()
145+
}
146+
}
142147
is TestRunStopped -> Unit
143148
is TestRunEnded -> Unit
144-
145149
}
146150
}
147151
}

0 commit comments

Comments
 (0)