Bug 787116 - Use self.stream to write Marionette log lines, r=jgriffin, DONTBUILD because NPOTB

This commit is contained in:
Hao Gao 2012-09-07 10:04:44 -07:00
parent e07607b6f2
commit a84b8c80c8

View File

@ -65,10 +65,10 @@ class MarionetteTestResult(unittest._TextTestResult):
def printLogs(self, test):
for testcase in test._tests:
if hasattr(testcase, 'loglines') and testcase.loglines:
print 'START LOG:'
self.stream.writeln('START LOG:')
for line in testcase.loglines:
print ' '.join(line)
print 'END LOG:'
self.stream.writeln(' '.join(line))
self.stream.writeln('END LOG:')
def getPerfData(self, test):
for testcase in test._tests: