Bug 844797 - Avoid UnboundLocalError on dumpDir in checkForCrashes; r=edmorley

This commit is contained in:
Geoff Brown 2013-02-26 07:19:58 -07:00
Родитель ede2dde8b2
Коммит f56a8ab5b8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -123,6 +123,7 @@ class RemoteAutomation(Automation):
if javaException:
return True
try:
dumpDir = tempfile.mkdtemp()
remoteCrashDir = self._remoteProfile + '/minidumps/'
if not self._devicemanager.dirExists(remoteCrashDir):
# As of this writing, the minidumps directory is automatically
@ -131,7 +132,6 @@ class RemoteAutomation(Automation):
print "Automation Error: No crash directory (%s) found on remote device" % remoteCrashDir
# Whilst no crash was found, the run should still display as a failure
return True
dumpDir = tempfile.mkdtemp()
self._devicemanager.getDirectory(remoteCrashDir, dumpDir)
crashed = automationutils.checkForCrashes(dumpDir, symbolsPath,
self.lastTestSeen)