mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
d34f56b1f8
commit
e2772d926c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user