Closed Bug 1638410 Opened 9 months ago Closed 8 months ago

[wpt-sync] Sync PR 23642 - wpt command should return non-zero if any of the subprocess fails.

Categories

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

task

Tracking

(firefox78 fixed)

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Carlos Alberto Lopez Perez <clopez@igalia.com> wrote:

wpt command should return non-zero if any of the subprocess fails.

When executing two times ./wpt serve on the same machine, the second run fails to bind to the port and wpt serve fails to start (as expected), but it was exiting with zero status despite of the failure to start.

Fix this by exiting on the main wpt program with zero status only if all the the subprocess exit with zero, otherwise exit with N, being N the number of subprocess that have failed.

//cc @Ms2ger @jgraham

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3c789d19329f
[wpt PR 23642] - wpt serve should return non-zero if any of the subprocess fails, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.