Bug 1156422 - Improve robustness of logcat collection in checkForCrashes; r=bc

This commit is contained in:
Geoff Brown 2015-04-21 16:44:42 -06:00
parent c0cff41c3a
commit 2eb0898b78

View File

@ -180,7 +180,13 @@ class RemoteAutomation(Automation):
self.checkForANRs()
self.checkForTombstones()
logcat = self._devicemanager.getLogcat(filterOutRegexps=fennecLogcatFilters)
try:
logcat = self._devicemanager.getLogcat(filterOutRegexps=fennecLogcatFilters)
except DMError:
print "getLogcat threw DMError; re-trying just once..."
time.sleep(1)
logcat = self._devicemanager.getLogcat(filterOutRegexps=fennecLogcatFilters)
javaException = mozcrash.check_for_java_exception(logcat)
if javaException:
return True