Bug 1380082 - Check Stylo env var for WPT processing. r=jgraham draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 11 Jul 2017 14:04:44 -0500
changeset 607856 5a313dc6e444a1b4de203e12729e510720eb334b
parent 607855 b1fb47c77fa178deafe0d4f077dd7b819271b420
child 607857 ffef92eec90785e6161c2caee206220a9b0f0564
push id68126
push userbmo:jryans@gmail.com
push dateWed, 12 Jul 2017 23:00:32 +0000
reviewersjgraham
bugs1380082
milestone56.0a1
Bug 1380082 - Check Stylo env var for WPT processing. r=jgraham Test harnesses may use STYLO_FORCE_ENABLED, so we need to check this value when building WPT test conditions. MozReview-Commit-ID: HXZZqBkRdOv
testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py
@@ -72,16 +72,18 @@ class RunInfo(dict):
         self["product"] = product
         if debug is not None:
             self["debug"] = debug
         elif "debug" not in self:
             # Default to release
             self["debug"] = False
         if product == "firefox" and "stylo" not in self:
             self["stylo"] = False
+        if 'STYLO_FORCE_ENABLED' in os.environ:
+            self["stylo"] = True
         if extras is not None:
             self.update(extras)
 
     def _update_mozinfo(self, metadata_root):
         """Add extra build information from a mozinfo.json file in a parent
         directory"""
         path = metadata_root
         dirs = set()