Bug 1398223 - Add a webrender flag to mozinfo to allow using it in mochitest.ini conditions. r?gbrown draft
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 20 Sep 2017 16:24:39 -0400
changeset 667828 31faf4779b03a7055830267a1336f47ae74ea566
parent 667303 a0eb21bf55e1c1ae0ba311e6f2273da05c712799
child 732529 fb70e8b4834f5a0b407cdb5487f62fc166658dbb
push id80865
push userkgupta@mozilla.com
push dateWed, 20 Sep 2017 20:25:14 +0000
reviewersgbrown
bugs1398223
milestone57.0a1
Bug 1398223 - Add a webrender flag to mozinfo to allow using it in mochitest.ini conditions. r?gbrown MozReview-Commit-ID: IEgirFNntzS
testing/mozbase/mozinfo/mozinfo/mozinfo.py
--- a/testing/mozbase/mozinfo/mozinfo/mozinfo.py
+++ b/testing/mozbase/mozinfo/mozinfo/mozinfo.py
@@ -60,17 +60,18 @@ def get_windows_version():
 
 
 # get system information
 info = {'os': unknown,
         'processor': unknown,
         'version': unknown,
         'os_version': unknown,
         'bits': unknown,
-        'has_sandbox': unknown}
+        'has_sandbox': unknown,
+        'webrender': bool(os.environ.get("MOZ_WEBRENDER", False))}
 (system, node, release, version, machine, processor) = platform.uname()
 (bits, linkage) = platform.architecture()
 
 # get os information and related data
 if system in ["Microsoft", "Windows"]:
     info['os'] = 'win'
     # There is a Python bug on Windows to determine platform values
     # http://bugs.python.org/issue7860