Auto merge of #21244 - servo:jdm-patch-23, r=SimonSapin

Adjust import path for WPT tests to accommodate upstream.

This should avoid the ongoing issues where new dependencies are vendored upstream and our setup throws exceptions when some code tries to import them.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21244)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-07-25 09:02:59 -04:00 committed by GitHub
commit e6768648a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,8 @@ def servo_path(*args):
paths = {"include_manifest": wpt_path("include.ini"),
"config": wpt_path("config.ini")}
# Imports
sys.path.append(wpt_path("web-platform-tests", "tools", "wptrunner"))
sys.path.append(wpt_path("web-platform-tests", "tools"))
import localpaths # noqa: flake8
from wptrunner import wptrunner, wptcommandline