diff options
author | Gregory Szorc <gregory.szorc@gmail.com> | 2017-02-03 23:25:30 -0800 |
---|---|---|
committer | Gregory Szorc <gregory.szorc@gmail.com> | 2017-02-03 23:38:41 -0800 |
commit | d27be523712dcbbde7f279148f12258796b2053b (patch) | |
tree | 139896215659c5942ab14e32bc5539eafa3fe8f4 /tests | |
parent | 19deb66e2c4157d3f84ff724d5c1ef4cc0b17d3e (diff) | |
download | servo-d27be523712dcbbde7f279148f12258796b2053b.tar.gz servo-d27be523712dcbbde7f279148f12258796b2053b.zip |
Find WPT files in Firefox repository
The Servo repository is now (mostly) vendored in the Firefox Mercurial
repository. For size and duplication reasons, the tests/wpt directory is
not included in the vendored copy.
This causes problems when running `mach` from the Firefox repository
because `mach` references pip requirements files and module search
paths from WPT.
This commit adds code to detect when Servo's mach is running from a
Firefox source tree and to resolve WPT paths to the Firefox location
if appropriate. This enables `mach` to "just work" when running
from the servo/ directory in the Firefox repository.
The file looked for to identify the Firefox repository is identical
to what Firefox's `mach` script uses.
A potential issue with using Firefox's WPT files is that they may be
different from those in the Servo repository and this could lead to
differences in behavior - possibly even an error when loading/running
`mach`. However, the behavior before this commit was that Servo's
`mach` never worked in the Firefox repository (due to missing WPT
files). And post-commit it does. So this seems like a "perfect is the
enemy of good" scenario.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions