Bug 1380082 - Check Stylo env var for mochitest processing. r=ahal draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 11 Jul 2017 13:53:20 -0500
changeset 607855 b1fb47c77fa178deafe0d4f077dd7b819271b420
parent 607854 18bdb70240a5c096bdd52e9c4ddae79df0d9d91b
child 607856 5a313dc6e444a1b4de203e12729e510720eb334b
push id68126
push userbmo:jryans@gmail.com
push dateWed, 12 Jul 2017 23:00:32 +0000
reviewersahal
bugs1380082
milestone56.0a1
Bug 1380082 - Check Stylo env var for mochitest processing. r=ahal Test harnesses may use STYLO_FORCE_ENABLED, so we need to fold this into mozinfo for mochitest annotations. MozReview-Commit-ID: JyadTE7apX6
testing/mochitest/runtests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1392,16 +1392,19 @@ toolbar#nav-bar {
         if self._active_tests:
             return self._active_tests
 
         tests = []
         manifest = self.getTestManifest(options)
         if manifest:
             if options.extra_mozinfo_json:
                 mozinfo.update(options.extra_mozinfo_json)
+            if 'STYLO_FORCE_ENABLED' in os.environ:
+                mozinfo.update({'stylo': True})
+
             info = mozinfo.info
 
             # Bug 1089034 - imptest failure expectations are encoded as
             # test manifests, even though they aren't tests. This gross
             # hack causes several problems in automation including
             # throwing off the chunking numbers. Remove them manually
             # until bug 1089034 is fixed.
             def remove_imptest_failure_expectations(tests, values):