Closed Bug 2066913 Opened 3 months ago Closed 2 months ago

[wpt-sync] Sync PR 62224 - [Extensions] Support Windows paths in WPT runner

Categories

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

task

Tracking

(firefox157 fixed)

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

justinlulejian <justinlulejian@users.noreply.github.com> wrote:

[Extensions] Support Windows paths in WPT runner

Before this CL, web-extension WPT tests (such as browser.alarms, browser.bookmarks, browser.browsingData, browser.idle, browser.runtime, and browser.storage), when running these tests on Windows, had executorwebdriver._resolve_path fail because it split test_path on "/" while Windows paths use backslashes.

This caused invalid concatenated extension paths like "web-extensions\browser.alarms.extension.html/resources/alarms/", leading to unhandled promise rejections during extension installation. After this CL, web-extension WPT tests resolve paths correctly across all platforms.

To accomplish this, executorwebdriver._resolve_path now normalizes Windows backslashes to forward slashes with posixpath.dirname and strips leading slashes before joining.

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b2bfca4acefe https://hg.mozilla.org/integration/autoland/rev/c4f1c91f0a38 [wpt PR 62224] - [Extensions] Support Windows paths in extension WPT runner, a=testonly

Test result changes from PR not available.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in before you can comment on or make changes to this bug.