mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
wpt: fix the path to wpt-prefs.json on WPT runner (#33220)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
6de7848aff
commit
5092cece7a
2 changed files with 5 additions and 4 deletions
2
tests/wpt/meta/MANIFEST.json
vendored
2
tests/wpt/meta/MANIFEST.json
vendored
|
@ -490301,7 +490301,7 @@
|
|||
[]
|
||||
],
|
||||
"executorservo.py": [
|
||||
"90251c1e4c6b6ffd150184005466aecdc76d180d",
|
||||
"a0deac318d07dc802cff3e956ad254bb6b340587",
|
||||
[]
|
||||
],
|
||||
"executorservodriver.py": [
|
||||
|
|
|
@ -69,10 +69,11 @@ class ServoExecutor(ProcessTestExecutor):
|
|||
def find_wpt_prefs(self):
|
||||
default_path = os.path.join("resources", "wpt-prefs.json")
|
||||
# The cwd is the servo repo for `./mach test-wpt`, but on WPT runners
|
||||
# it is the virtual environment where the nightly is extracted. In the
|
||||
# latter case, the cwd has the `servo` folder inside which we find the
|
||||
# it is the WPT repo. The nightly tar is extracted inside the python
|
||||
# virtual environment within the repo. This means that on WPT runners,
|
||||
# the cwd has the `_venv/servo` directory inside which we find the
|
||||
# binary and the 'resources' directory.
|
||||
for dir in [".", "./servo"]:
|
||||
for dir in [".", "./_venv/servo"]:
|
||||
candidate = os.path.abspath(os.path.join(dir, default_path))
|
||||
if os.path.isfile(candidate):
|
||||
return candidate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue