Bug 787116 - Use self.stream to write Marionette log lines, r=jgriffin, DONTBUILD because NPOTB
authorHao Gao <haog@andrew.cmu.edu>
Fri, 07 Sep 2012 10:04:44 -0700
changeset 104563 00a552f644a21c1395909643ea44c70f313bee39
parent 104562 efccc8f21e324e84d0e67ba5411b35d6798e9f4c
child 104595 627874fd306cfddc9834c784db7ece9ed9c08993
child 104608 ba0c96f30bd3094fd795a46166a68ccef6e0e9b2
child 106781 e0398687f0305850066b74a86913f3b403560117
child 110936 1f92079a3029bb6e97699dfd3c1d3f20d1a73fbc
push id23429
push userjgriffin@mozilla.com
push dateFri, 07 Sep 2012 17:05:22 +0000
treeherdermozilla-central@00a552f644a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin, DONTBUILD
bugs787116
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 787116 - Use self.stream to write Marionette log lines, r=jgriffin, DONTBUILD because NPOTB
testing/marionette/client/marionette/runtests.py
--- a/testing/marionette/client/marionette/runtests.py
+++ b/testing/marionette/client/marionette/runtests.py
@@ -60,20 +60,20 @@ class MarionetteTestResult(unittest._Tex
             desc = str(test)
             if hasattr(test, 'jsFile'):
                 desc = "%s, %s" % (test.jsFile, desc)
             return desc
 
     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:
             if testcase.perfdata:
                 if not self.perfdata:
                     self.perfdata = datazilla.DatazillaResult(testcase.perfdata)
                 else:
                     self.perfdata.join_results(testcase.perfdata)