Bug 1409739 - Part 4: Add a DMD variant of AWSY tests. r=bc

This makes enabling DMD at runtime in automation opt-in via a '--dmd' param.
Currently this is enabled via the 'awsy-dmd-e10s' and 'awsy-base-dmd-e10s'
tests.

--HG--
extra : rebase_source : 0371dca4d99197e7f0a37dfcd3763903f807b7b0
This commit is contained in:
Eric Rahm 2018-10-04 12:43:32 -07:00
Родитель 4e8fdd0647
Коммит 732ec05444
3 изменённых файлов: 26 добавлений и 1 удалений

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

@ -26,6 +26,14 @@ awsy:
.*-devedition/.*: [] # don't run on devedition
default: built-projects
awsy-dmd:
description: "Are we slim yet - dmd enabled"
treeherder-symbol: SY(sy-d)
run-on-projects: ['try']
mozharness:
extra-options:
- --dmd
awsy-base:
description: "Are we slim yet - about:blank base case"
treeherder-symbol: SY(ab)
@ -37,6 +45,15 @@ awsy-base:
extra-options:
- --base
awsy-base-dmd:
description: "Are we slim yet - about:blank base case - dmd enabled"
treeherder-symbol: SY(ab-d)
run-on-projects: ['try']
mozharness:
extra-options:
- --base
- --dmd
awsy-stylo-sequential:
description: "Are we slim yet for Stylo sequential"
treeherder-symbol: SYss(sy)

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

@ -119,6 +119,8 @@ raptor-fetch-chrome:
awsy:
- awsy
- awsy-base
- awsy-dmd
- awsy-base-dmd
awsy-stylo-sequential:
- awsy-stylo-sequential

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

@ -56,6 +56,12 @@ class AWSY(TestingMixin, MercurialScript, TooltoolMixin, CodeCoverageMixin):
"dest": "test_about_blank",
"default": False,
"help": "Runs the about:blank base case memory test.",
}],
[["--dmd"],
{"action": "store_true",
"dest": "dmd",
"default": False,
"help": "Runs tests with DMD enabled.",
}]
] + testing_config_options + copy.deepcopy(code_coverage_config_options)
@ -162,7 +168,7 @@ class AWSY(TestingMixin, MercurialScript, TooltoolMixin, CodeCoverageMixin):
dmd_py_lib_dir = os.path.join(dmd_py_lib_dir, "../Resources/")
dmd_path = os.path.join(dmd_py_lib_dir, "dmd.py")
if os.path.isfile(dmd_path):
if self.config['dmd'] and os.path.isfile(dmd_path):
dmd_enabled = True
runtime_testvars['dmd'] = True