Bug 1050148 - Dump the log buffer after each run (with run-by-dir). r=jmaher, a=test-only
authorAhmed Kachkach <ahmed.kachkach@gmail.com>
Thu, 07 Aug 2014 10:58:00 -0400
changeset 216410 2817d9e1a008e069ac57d26d5b4323dcbe5f7d4f
parent 216409 62397a1a0956dc5c856405889368f423ded2a2cc
child 216411 7d0337de2e1567beb3e0c20dd5c4ae223701f94d
push id3857
push userraliiev@mozilla.com
push dateTue, 02 Sep 2014 16:39:23 +0000
treeherdermozilla-beta@5638b907b505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher, test-only
bugs1050148
milestone33.0a2
Bug 1050148 - Dump the log buffer after each run (with run-by-dir). r=jmaher, a=test-only
testing/mochitest/runtests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1629,16 +1629,19 @@ class Mochitest(MochitestUtilsMixin):
       options.testPath = dir
       print "testpath: %s" % options.testPath
 
       # If we are using --run-by-dir, we should not use the profile path (if) provided
       # by the user, since we need to create a new directory for each run. We would face problems
       # if we use the directory provided by the user.
       result = self.runMochitests(options, onLaunch)
 
+      # Dump the logging buffer
+      self.message_logger.dump_buffered()
+
     # printing total number of tests
     if options.browserChrome:
       print "TEST-INFO | checking window state"
       print "Browser Chrome Test Summary"
       print "\tPassed: %s" % self.countpass
       print "\tFailed: %s" % self.countfail
       print "\tTodo: %s" % self.counttodo
       print "*** End BrowserChrome Test Results ***"