Files
sousa-gecko/testing/web-platform/tests/tools/wpt
Sam Sneddon 6ec5dc236a Bug 2047041 [wpt PR 60568] - Actually give a distinct exit code for uncaught exceptions, a=testonly
Automatic update from web-platform-tests
[wpt] Distinguish uncaught exceptions from subcommand exit codes

The `./wpt` dispatcher previously re-raised exceptions out of
subcommand scripts, letting them propagate to CPython's default
handler and exit 1 — indistinguishable from a subcommand that
deliberately returned 1 (e.g., `run` with one failure, `lint` with one
failure).

Now, we instead print the traceback ourselves and exit with
`os.EX_SOFTWARE` (70).

--
Always exit with 1 on lint errors

Previously, we exited with the number of lint errors. This both makes
it hard to distinguish what's going on (is this an exit due to invalid
arguments or is this an exit due to a lint errors), and would stop
being accurate with more than 255 errors.

--
Align python3 -m tool.lint.lint with the os.EX_SOFTWARE exit

--

wpt-commits: 768950f0257f563d6e48b65f7b63dbda23ca2903, 32d165a4be2351c704cbbf2839a4e3f2fa28b854, 7acf6644239427aeb0d02ab6510164d94d83fc87
wpt-pr: 60568
2026-07-10 09:20:35 +00:00
..
…
…
…
…
…
…