Bug 1494636: Handle more test info details for web platform tests on android r=jgraham
authorDavid Burns <dburns@mozilla.com>
Mon, 01 Oct 2018 09:51:30 +0000
changeset 438948 443579275cc89162c850197495b42cc6e933b3e2
parent 438947 ae8dab184763bbd5038e0faf0e66cec57cd3d42e
child 438949 29e74e1fa224acfc5985c07eca25542a6a79895c
push id34748
push usernerli@mozilla.com
push dateMon, 01 Oct 2018 16:20:54 +0000
treeherdermozilla-central@e173a2a4c12f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1494636
milestone64.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 1494636: Handle more test info details for web platform tests on android r=jgraham Add support for verify and wasm test info when running web platform tests on android Differential Revision: https://phabricator.services.mozilla.com/D7270
testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py
testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py
@@ -43,16 +43,17 @@ def setup_logging(*args, **kwargs):
 
 def get_loader(test_paths, product, debug=None, run_info_extras=None, **kwargs):
     if run_info_extras is None:
         run_info_extras = {}
 
     run_info = wpttest.get_run_info(kwargs["run_info"], product,
                                     browser_version=kwargs.get("browser_version"),
                                     browser_channel=kwargs.get("browser_channel"),
+                                    verify=kwargs.get("verify"),
                                     debug=debug,
                                     extras=run_info_extras)
 
     test_manifests = testloader.ManifestLoader(test_paths, force_manifest_update=kwargs["manifest_update"],
                                                manifest_download=kwargs["manifest_download"]).load()
 
     manifest_filters = []
     meta_filters = []
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py
@@ -65,16 +65,17 @@ class WdspecSubtestResult(SubtestResult)
 def get_run_info(metadata_root, product, **kwargs):
     return RunInfo(metadata_root, product, **kwargs)
 
 
 class RunInfo(dict):
     def __init__(self, metadata_root, product, debug,
                  browser_version=None,
                  browser_channel=None,
+                 verify=None,
                  extras=None):
         import mozinfo
         self._update_mozinfo(metadata_root)
         self.update(mozinfo.info)
 
         from update.tree import GitTree
         try:
             # GitTree.__init__ throws if we are not in a git tree.
@@ -89,16 +90,20 @@ class RunInfo(dict):
             self["debug"] = debug
         elif "debug" not in self:
             # Default to release
             self["debug"] = False
         if browser_version:
             self["browser_version"] = browser_version
         if browser_channel:
             self["browser_channel"] = browser_channel
+
+        self["verify"] = verify
+        if "wasm" not in self:
+            self["wasm"] = False
         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"""
         import mozinfo