Revert: chore: fail properly in web platform test

The previous behaviour was correct. The process exit code does not matter, because failures are expected (we are running all tests here intentionally, even failing ones). This is done so we can report both success and failure accurately to wpt.fyi.
This commit is contained in:
Luca Casonato 2024-04-17 11:10:56 +02:00
parent ebc22d9d7e
commit 85b7dbc65b
No known key found for this signature in database
GPG Key ID: 01A83EB62563811F

View File

@ -65,14 +65,17 @@ jobs:
- name: Run web platform tests
shell: bash
# Setup WPT and run tests. We ignore the exit code of the test run
# because the CI job reports the results to WPT.fyi, and we still want
# to report failure.
run: |
deno run --unstable --allow-write --allow-read --allow-net \
--allow-env --allow-run --lock=tools/deno.lock.json \
./tests/wpt/wpt.ts setup
deno run --unstable --allow-write --allow-read --allow-net \
--allow-env --allow-run --lock=tools/deno.lock.json \
./tests/wpt/wpt.ts run \ \
--binary=$(which deno) --quiet --release --no-ignore --json=wpt.json --wptreport=wptreport.json
./tests/wpt/wpt.ts run \
--binary=$(which deno) --quiet --release --no-ignore --json=wpt.json --wptreport=wptreport.json || true
- name: Upload wpt results to wpt.fyi
env: