summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/wpt/wpt.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/wpt/wpt.ts b/tests/wpt/wpt.ts
index 056db5dc0..675ef3ae0 100755
--- a/tests/wpt/wpt.ts
+++ b/tests/wpt/wpt.ts
@@ -550,6 +550,12 @@ function reportFinal(
}. ${finalPassedCount} passed; ${finalFailedCount} failed; ${finalExpectedFailedAndFailedCount} expected failure; total ${finalTotalCount} (${duration}ms)\n`,
);
+ // 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.
+ if (Deno.args.includes("--exit-zero")) {
+ return 0;
+ }
+
return failed ? 1 : 0;
}