Bug 1397215 - Fix --exclude and --include arguments to wptrunner, r=me
authorJames Graham <james@hoppipolla.co.uk>
Mon, 04 Sep 2017 19:13:55 +0100
changeset 429015 066c4b407312c7b595a246f575f8d0f74a9174c1
parent 429014 c4030cb9516d3b1dc2bd57dae53c1521706d1be6
child 429016 41015e89d9c0515686f42d5cca02756fc946147e
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1397215
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 1397215 - Fix --exclude and --include arguments to wptrunner, r=me We need to set_default when creating an empty IncludeManifest so that skip is set. This is pretty unfortunate. MozReview-Commit-ID: 43Vwtu2bhvn
testing/web-platform/tests/tools/wptrunner/wptrunner/testloader.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/testloader.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/testloader.py
@@ -336,16 +336,17 @@ class EqualTimeChunker(TestChunker):
 
 
 class TestFilter(object):
     def __init__(self, test_manifests, include=None, exclude=None, manifest_path=None):
         if manifest_path is not None and include is None:
             self.manifest = manifestinclude.get_manifest(manifest_path)
         else:
             self.manifest = manifestinclude.IncludeManifest.create()
+            self.manifest.set_defaults()
 
         if include:
             self.manifest.set("skip", "true")
             for item in include:
                 self.manifest.add_include(test_manifests, item)
 
         if exclude:
             for item in exclude: