summaryrefslogtreecommitdiff
path: root/tools/wpt.ts
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2023-03-02 23:05:17 +0100
committerGitHub <noreply@github.com>2023-03-02 23:05:17 +0100
commit64503fabd81e38c58d44d23ae94f5b87a384b86e (patch)
treec2ef35c55dcccbf6c5efcbd7400ef2d328b72e71 /tools/wpt.ts
parent88c9a999f78916700b35b6a893a5b779a4f86db0 (diff)
test(wpt): implement process timeout, fix expectations update, and more... (#17892)
- relands #17872 - updates the timeouts to be re-configurable just for CI - fixes `./tools/wpt.ts update` - adds option not "ignore" during, applied to wpt epoch runs only
Diffstat (limited to 'tools/wpt.ts')
-rwxr-xr-xtools/wpt.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/wpt.ts b/tools/wpt.ts
index 5d0c2e762..2b61682be 100755
--- a/tools/wpt.ts
+++ b/tools/wpt.ts
@@ -25,6 +25,7 @@ import {
ManifestFolder,
ManifestTestOptions,
ManifestTestVariation,
+ noIgnore,
quiet,
rest,
runPy,
@@ -173,6 +174,9 @@ async function run() {
test.options,
inParallel ? () => {} : createReportTestCase(test.expectation),
inspectBrk,
+ Deno.env.get("CI")
+ ? { long: 4 * 60_000, default: 4 * 60_000 }
+ : { long: 60_000, default: 10_000 },
);
results.push({ test, result });
if (inParallel) {
@@ -332,6 +336,7 @@ async function update() {
test.options,
json ? () => {} : createReportTestCase(test.expectation),
inspectBrk,
+ { long: 60_000, default: 10_000 },
);
results.push({ test, result });
reportVariation(result, test.expectation);
@@ -367,7 +372,7 @@ async function update() {
const currentExpectation = getExpectation();
- for (const result of Object.values(resultTests)) {
+ for (const [path, result] of Object.entries(resultTests)) {
const { passed, failed, testSucceeded } = result;
let finalExpectation: boolean | string[];
if (failed.length == 0 && testSucceeded) {
@@ -699,7 +704,7 @@ function discoverTestsToRun(
typeof expectation.ignore === "boolean",
"test entry's `ignore` key must be a boolean",
);
- if (expectation.ignore === true) continue;
+ if (expectation.ignore === true && !noIgnore) continue;
}
}