зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1558598
- Add the --enable-webrender option to android HW unittests. r=ahal
This is not used yet but will be eventually so I'm just going to add it now. Depends on D34623 Differential Revision: https://phabricator.services.mozilla.com/D34624 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dac61ec776
Коммит
faedf6bd33
|
@ -77,6 +77,13 @@ class AndroidHardwareTest(TestingMixin, BaseScript, MozbaseMixin,
|
|||
"default": True,
|
||||
"help": "Run tests without multiple processes (e10s).",
|
||||
}
|
||||
], [
|
||||
['--enable-webrender'],
|
||||
{"action": "store_true",
|
||||
"dest": "enable_webrender",
|
||||
"default": False,
|
||||
"help": "Run with WebRender enabled.",
|
||||
}
|
||||
]] + copy.deepcopy(testing_config_options)
|
||||
|
||||
def __init__(self, require_config_file=False):
|
||||
|
@ -118,6 +125,7 @@ class AndroidHardwareTest(TestingMixin, BaseScript, MozbaseMixin,
|
|||
self.log_raw_level = c.get('log_raw_level')
|
||||
self.log_tbpl_level = c.get('log_tbpl_level')
|
||||
self.e10s = c.get('e10s')
|
||||
self.enable_webrender = c.get('enable_webrender')
|
||||
|
||||
def query_abs_dirs(self):
|
||||
if self.abs_dirs:
|
||||
|
@ -247,6 +255,11 @@ class AndroidHardwareTest(TestingMixin, BaseScript, MozbaseMixin,
|
|||
elif category not in SUITE_DEFAULT_E10S and self.e10s:
|
||||
cmd.extend(['--e10s'])
|
||||
|
||||
if self.enable_webrender:
|
||||
cmd.extend(['--setenv', 'MOZ_WEBRENDER=1'])
|
||||
else:
|
||||
cmd.extend(['--setenv', 'MOZ_WEBRENDER=0'])
|
||||
|
||||
try_options, try_tests = self.try_args(self.test_suite)
|
||||
cmd.extend(try_options)
|
||||
if not self.verify_enabled and not self.per_test_coverage:
|
||||
|
|
Загрузка…
Ссылка в новой задаче