Bug 1558598 - Fix up webrender options for the firefox-ui harness. r=ato,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D35864

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2019-06-29 09:50:34 +00:00
Родитель 7cac45c075
Коммит b7f611ea16
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -36,7 +36,7 @@ firefox_ui_tests_config_options = [
"action": "store_true",
"dest": "enable_webrender",
"default": False,
"help": "Tries to enable the WebRender compositor.",
"help": "Enable the WebRender compositor in Gecko.",
}],
[['--dry-run'], {
'dest': 'dry_run',
@ -234,6 +234,9 @@ class FirefoxUITests(TestingMixin, VCSToolsScript, CodeCoverageMixin):
'-vv',
]
if self.config['enable_webrender']:
cmd.append('--enable-webrender')
# Collect all pass-through harness options to the script
cmd.extend(self.query_harness_args())
@ -269,9 +272,6 @@ class FirefoxUITests(TestingMixin, VCSToolsScript, CodeCoverageMixin):
if self.config['allow_software_gl_layers']:
env['MOZ_LAYERS_ALLOW_SOFTWARE_GL'] = '1'
if self.config['enable_webrender']:
env['MOZ_WEBRENDER'] = '1'
env['MOZ_ACCELERATED'] = '1'
return_code = self.run_command(cmd,
cwd=dirs['abs_fxui_dir'],