Bug 1470397 - Use logger from created from |mach test| in testing/firefox-ui/mach_commands.py, r=whimboo

This will allow |mach test| to run firefox-ui tests.

Differential Revision: https://phabricator.services.mozilla.com/D1844
This commit is contained in:
Andrew Halberstadt 2018-06-27 19:43:12 +00:00
Родитель ff2bb5e8f2
Коммит 4af641bef5
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -77,8 +77,10 @@ def run_firefox_ui_test(testtype=None, topsrcdir=None, **kwargs):
kwargs['tests'] = [os.path.join(fxui_dir, 'tests', test)
for test in test_types[testtype]['default_tests']]
kwargs['logger'] = commandline.setup_logging('Firefox UI - {} Tests'.format(testtype),
{"mach": sys.stdout})
kwargs['logger'] = kwargs.pop('log', None)
if not kwargs['logger']:
kwargs['logger'] = commandline.setup_logging('Firefox UI - {} Tests'.format(testtype),
{"mach": sys.stdout})
args = Namespace()