Bug 1398223 - Add a webrender flag to mozinfo to allow using it in mochitest.ini conditions. r=gbrown
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 20 Sep 2017 16:24:39 -0400
changeset 431628 36d6f521c2b20ca63bfaf2bfdd3aaa656ea17424
parent 431627 5fa690493eaa3a6d7993bb2f46478e94b9385e6d
child 431629 dc85108a0a305cff7c57d9cd6978b8312d03598f
push id7785
push userryanvm@gmail.com
push dateThu, 21 Sep 2017 13:39:55 +0000
treeherdermozilla-beta@06d4034a8a03 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs1398223
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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