Bug 917440 - Don't attempt to read stdout of xpcshell process when running interactively. r=ted

This commit is contained in:
Chris Manchester 2013-09-20 10:48:07 -04:00
Родитель 0765e9cd26
Коммит e3a04b960e
1 изменённых файлов: 8 добавлений и 7 удалений

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

@ -199,14 +199,15 @@ class XPCShellTestThread(Thread):
# Processing of incremental output put here to
# sidestep issues on remote platforms, where what we know
# as proc is a file pulled off of a device.
while True:
line = proc.stdout.readline()
if not line:
break
self.process_line(line)
if proc.stdout:
while True:
line = proc.stdout.readline()
if not line:
break
self.process_line(line)
if self.saw_proc_start and not self.saw_proc_end:
self.has_failure_output = True
if self.saw_proc_start and not self.saw_proc_end:
self.has_failure_output = True
return proc.communicate()