Bug 912779 - Improve error handling in mochitest runtestsremote.py; r=jmaher

This commit is contained in:
Geoff Brown 2013-09-05 10:14:56 -06:00
Родитель 9b5e7ab044
Коммит b8b2651660
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -313,9 +313,10 @@ class MochiRemote(Mochitest):
xpcshell_path = os.path.join(options.utilityPath, xpcshell)
if localAutomation.elf_arm(xpcshell_path):
self.error('xpcshell at %s is an ARM binary; please use '
'the --utility-path argument to specify the path '
'to a desktop version.' % xpcshell)
log.error('xpcshell at %s is an ARM binary; please use '
'the --utility-path argument to specify the path '
'to a desktop version.' % xpcshell_path)
sys.exit(1)
options.profilePath = tempfile.mkdtemp()
self.server = MochitestServer(localAutomation, options)
@ -332,7 +333,8 @@ class MochiRemote(Mochitest):
options.profilePath = remoteProfilePath
def stopWebServer(self, options):
self.server.stop()
if hasattr(self, 'server'):
self.server.stop()
def buildProfile(self, options):
if self.localProfile: