Bug 765095 - Post logcat log to autolog, r=mdas, DONTBUILD because NPOTB

This commit is contained in:
Jonathan Griffin 2012-06-14 18:26:43 -07:00
parent 54eaebfe5e
commit 003ff01dd6

View File

@ -234,6 +234,13 @@ class MarionetteTestRunner(object):
def post_to_autolog(self, elapsedtime):
self.logger.info('posting results to autolog')
logfile = None
if self.emulator:
filename = os.path.join(os.path.abspath(self.logcat_dir),
"emulator-%d.log" % self.marionette.emulator.port)
if os.access(filename, os.F_OK):
logfile = filename
# This is all autolog stuff.
# See: https://wiki.mozilla.org/Auto-tools/Projects/Autolog
from mozautolog import RESTfulAutologTestGroup
@ -244,7 +251,8 @@ class MarionetteTestRunner(object):
harness = 'marionette',
server = self.es_server,
restserver = self.rest_server,
machine = socket.gethostname())
machine = socket.gethostname(),
logfile = logfile)
testgroup.set_primary_product(
tree = 'b2g',