Bug 1465659 - Take PERFHERDER_EXTRA_OPTIONS into account for static initializer count report. r=nalexander

--HG--
extra : rebase_source : af3296eb541b04217a5676b2ac9eacc20220978f
This commit is contained in:
Mike Hommey 2018-05-31 12:55:38 +09:00
parent 082d09bf5b
commit 1bf8415dea

View File

@ -633,6 +633,11 @@ class Dumper:
}]}
]
}
for opt in os.environ.get('PERFHERDER_EXTRA_OPTIONS', '').split():
for suite in perfherder_data['suites']:
if opt not in suite.get('extraOptions', []):
suite.setdefault('extraOptions', []).append(opt)
print('PERFHERDER_DATA: %s' % json.dumps(perfherder_data),
file=sys.stderr)