Bug 1508363 [wpt PR 14129] - Run infrastructure tests when resources/ changes, a=testonly
authorJames Graham <james@hoppipolla.co.uk>
Thu, 22 Nov 2018 10:34:13 +0000
changeset 507123 1feceedb32bae447b10c75260e3d19d3fff29e8f
parent 507122 223f2214ba65c111ed3335307ee485d355d503fa
child 507124 eee83acde11fab64a060b4d257063116a552c1fa
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1508363, 14129
milestone65.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 1508363 [wpt PR 14129] - Run infrastructure tests when resources/ changes, a=testonly Automatic update from web-platform-testsRun infrastructure tests when resources/ changes -- wpt-commits: c9a67bf15547f40ce9f172f85d88987570f04cd8 wpt-pr: 14129
testing/web-platform/tests/tools/ci/jobs.py
testing/web-platform/tests/tools/ci/tests/test_jobs.py
--- a/testing/web-platform/tests/tools/ci/jobs.py
+++ b/testing/web-platform/tests/tools/ci/jobs.py
@@ -26,17 +26,17 @@ job_path_map = {
     "resources_unittest": ["resources/", "tools/"],
     "tools_unittest": ["tools/"],
     "wptrunner_unittest": ["tools/wptrunner/*"],
     "build_css": ["css/"],
     "update_built": ["2dcontext/",
                      "html/",
                      "offscreen-canvas/"],
     "wpt_integration": ["tools/"],
-    "wptrunner_infrastructure": ["infrastructure/", "tools/"],
+    "wptrunner_infrastructure": ["infrastructure/", "tools/", "resources/"],
 }
 
 
 def _path_norm(path):
     """normalize a path for both case and slashes (to /)"""
     path = os.path.normcase(path)
     if os.path.sep != "/":
         # this must be after the normcase call as that does slash normalization
--- a/testing/web-platform/tests/tools/ci/tests/test_jobs.py
+++ b/testing/web-platform/tests/tools/ci/tests/test_jobs.py
@@ -20,17 +20,18 @@ def test_all():
     assert jobs.get_jobs(["README.md"], all=True) == all_jobs
 
 
 def test_default():
     assert jobs.get_jobs(["README.md"]) == default_jobs
 
 
 def test_testharness():
-    assert jobs.get_jobs(["resources/testharness.js"]) == default_jobs | set(["resources_unittest"])
+    assert jobs.get_jobs(["resources/testharness.js"]) == default_jobs | set(["resources_unittest",
+                                                                              "wptrunner_infrastructure"])
     assert jobs.get_jobs(["resources/testharness.js"],
                          includes=["resources_unittest"]) == set(["resources_unittest"])
     assert jobs.get_jobs(["tools/wptserve/wptserve/config.py"],
                          includes=["resources_unittest"]) == set(["resources_unittest"])
     assert jobs.get_jobs(["foo/resources/testharness.js"],
                          includes=["resources_unittest"]) == set()