Closed Bug 1631279 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 23096 - Allow wpt.py to be called from outside the WPT directory

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 23096 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/23096
Details from upstream follow.

Stephen McGruer <smcgruer@chromium.org> wrote:

Allow wpt.py to be called from outside the WPT directory

Note that this is about wpt.py, which is a file specifically used for
Windows, and not 'wpt' which is the main entry-point file.

Previously wpt.py would just try to exec 'wpt' in the current working
directory, which may not be the directory that contains 'wpt.py' (and
thus, no 'wpt'!). To fix that, we os.chdir into the same directory as
the file.

Fixes https://github.com/web-platform-tests/wpt/issues/23095

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/33e95f7622de
[wpt PR 23096] - Allow wpt.py to be called from outside the WPT directory, a=testonly
Test result changes from PR not available.
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/acd8dbb53770
[wpt PR 23096] - Allow wpt.py to be called from outside the WPT directory, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.