bug 1075636 - handle DM errors to gracefully handle client crashes. r=ted

This commit is contained in:
Ted Mielczarek 2014-10-10 10:15:09 -04:00
Родитель 6ce3a8499f 84745c44de
Коммит 9aa45194a7
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -3,7 +3,7 @@
# You can obtain one at http://mozilla.org/MPL/2.0/.
from manifestparser import TestManifest
from mozdevice import DeviceManagerSUT
from mozdevice import DeviceManagerSUT, DMError
from optparse import OptionParser
from mozprofile import FirefoxProfile, Profile, Preferences
from mozprofile.permissions import ServerLocations
@ -99,6 +99,9 @@ class RunThread(threading.Thread):
try:
output = dm.shellCheckOutput(cmd, env=env)
result = get_results(output)
except DMError as e:
output = "Error running build: " + e.msg
result = 0, 1
finally:
#TODO: actual result
cond.acquire()