Bug 1429158 - Use 'mach' format by default for one-click-loaner mochitests, r=jmaher

This uses the 'mach' format by default when running mochitests
from a one-click-loaner. This is now consistent with the default
when running mochitests locally.

MozReview-Commit-ID: LYQbGm71Of8

--HG--
extra : rebase_source : a0a042ae1f7af8b09f80cf1b4dc33a58e67f333e
This commit is contained in:
Andrew Halberstadt 2018-01-09 14:34:27 -05:00
parent 263b035a20
commit b7359b79da

View File

@ -5,6 +5,7 @@
from __future__ import unicode_literals
import os
import sys
from argparse import Namespace
from functools import partial
@ -19,6 +20,11 @@ parser = None
def run_mochitest(context, **kwargs):
from mochitest_options import ALL_FLAVORS
from mozlog.commandline import setup_logging
if not kwargs.get('log'):
kwargs['log'] = setup_logging('mochitest', kwargs, {'mach': sys.stdout})
flavor = kwargs.get('flavor') or 'mochitest'
if flavor not in ALL_FLAVORS:
for fname, fobj in ALL_FLAVORS.iteritems():