Bug 1370203 - Don't require setting the wpt hosts configuration for servo, r=farre draft
authorJames Graham <james@hoppipolla.co.uk>
Mon, 05 Jun 2017 13:31:08 +0100
changeset 589010 ec460b449e3d709000ff193e0eb41ac0b74a28f3
parent 589009 38095a3238916fcfde68f39c2dbfa61c1b0a897d
child 631740 5c2e3276fd97622769442ee43bec9ebbab54856a
push id62219
push userbmo:james@hoppipolla.co.uk
push dateMon, 05 Jun 2017 12:34:46 +0000
reviewersfarre
bugs1370203
milestone55.0a1
Bug 1370203 - Don't require setting the wpt hosts configuration for servo, r=farre Servo reads the hosts from a file created at runtime, so this configuration isn't required. MozReview-Commit-ID: 20NoZyp3bJz
testing/web-platform/tests/tools/wptrun.py
--- a/testing/web-platform/tests/tools/wptrun.py
+++ b/testing/web-platform/tests/tools/wptrun.py
@@ -76,17 +76,17 @@ your PATH.
 
 Otherwise run with --ssl-type=none""")
             else:
                 raise WptrunError("""OpenSSL not found. If you don't need HTTPS support run with --ssl-type=none,
 otherwise install OpenSSL and ensure that it's on your $PATH.""")
 
 
 def check_environ(product):
-    if product != "firefox":
+    if product not in ("firefox", "servo"):
         expected_hosts = ["web-platform.test",
                           "www.web-platform.test",
                           "www1.web-platform.test",
                           "www2.web-platform.test",
                           "xn--n8j6ds53lwwkrqhv28a.web-platform.test",
                           "xn--lve-6lad.web-platform.test",
                           "nonexistent-origin.web-platform.test"]
         missing_hosts = set(expected_hosts)