Bug 1558598 - Fix up webrender flag in desktop_unittest.py. r=ahal

Now that all the downstream test harnesses take the --enable-webrender
option and propagate it correctly, the desktop_unittest.py wrapper can
just pass it along to those harnesses.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2019-06-29 09:50:47 +00:00
parent 1298b01ce8
commit 286b1f72fd

View File

@ -160,7 +160,7 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin,
"action": "store_true",
"dest": "enable_webrender",
"default": False,
"help": "Tries to enable the WebRender compositor."}
"help": "Enable the WebRender compositor in Gecko."}
],
[["--gpu-required"], {
"action": "store_true",
@ -439,6 +439,9 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin,
if c['headless']:
base_cmd.append('--headless')
if c['enable_webrender']:
base_cmd.append('--enable-webrender')
if c['extra_prefs']:
base_cmd.extend(['--setpref={}'.format(p) for p in c['extra_prefs']])
@ -869,9 +872,6 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin,
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'
if self.config['single_stylo_traversal']:
env['STYLO_THREADS'] = '1'