wpt: check for wpt-prefs.json in "./servo" sub-directory (#33202)

The current working directory when running on WPT runners is not the
folder with the servo binary, but a parent folder into which the servo
nightly tar is extracted. This means the binary is `$PWD/servo/servo`
and resources directory in in `$PWD/servo/resources`, so the current
hardcoded relative path `resources/wpt-prefs.json` will not work on WPT
runners.

This is causing crashes in WPT runner:

https://github.com/web-platform-tests/wpt/runs/29284407168
https://community-tc.services.mozilla.com/tasks/J7MqNwJGQRSkIWlvB5ktPQ/runs/0/logs/live/public/logs/live.log

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
Mukilan Thiyagarajan 2024-08-27 13:34:12 +05:30 committed by GitHub
parent 7fce24f9d5
commit 173b6f183c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 2 deletions

View file

@ -490288,7 +490288,7 @@
[]
],
"executorservo.py": [
"c23f7632c9ef5f0acbdbb569db41f741ccf9de89",
"90251c1e4c6b6ffd150184005466aecdc76d180d",
[]
],
"executorservodriver.py": [