Bug 1925273 - Set script type for mochitest using manifest flavor. r=perftest-reviewers,afinder

Differential Revision: https://phabricator.services.mozilla.com/D225972
This commit is contained in:
Vasish Baungally 2024-10-24 11:57:24 +00:00
parent d34f56b1f8
commit e2772d926c

View File

@ -137,6 +137,10 @@ class ScriptInfo(defaultdict):
self._set_script_content()
self._parse_script_content()
if self.get("options", {}).get("default", {}).get("manifest_flavor"):
# Only mochitest tests have a manifest flavor
self.script_type = ScriptType.mochitest
def _parse_script_content(self):
self.parsed = esprima.parseScript(self.script_content)