diff --git a/tools/util.js b/tools/util.js index cd9e303146..c40db305cd 100644 --- a/tools/util.js +++ b/tools/util.js @@ -3,9 +3,10 @@ import { dirname, fromFileUrl, join, + resolve, toFileUrl, } from "https://deno.land/std@0.84.0/path/mod.ts"; -export { dirname, fromFileUrl, join, toFileUrl }; +export { dirname, fromFileUrl, join, resolve, toFileUrl }; export { existsSync } from "https://deno.land/std@0.84.0/fs/mod.ts"; export { readLines } from "https://deno.land/std@0.97.0/io/mod.ts"; export { delay } from "https://deno.land/std@0.84.0/async/delay.ts"; diff --git a/tools/wpt.ts b/tools/wpt.ts index 4a4d8cb581..0c56e9efdf 100755 --- a/tools/wpt.ts +++ b/tools/wpt.ts @@ -197,7 +197,7 @@ async function run() { } if (wptreport) { - const report = await generateWptreport(results, startTime, endTime); + const report = await generateWptReport(results, startTime, endTime); await Deno.writeTextFile(wptreport, JSON.stringify(report)); } @@ -205,7 +205,7 @@ async function run() { Deno.exit(code); } -async function generateWptreport( +async function generateWptReport( results: { test: TestToRun; result: TestResult }[], startTime: number, endTime: number, diff --git a/tools/wpt/utils.ts b/tools/wpt/utils.ts index f1c8488afc..13c68ec90c 100644 --- a/tools/wpt/utils.ts +++ b/tools/wpt/utils.ts @@ -2,7 +2,7 @@ /// FLAGS import { parse } from "https://deno.land/std@0.84.0/flags/mod.ts"; -import { join, ROOT_PATH } from "../util.js"; +import { join, resolve, ROOT_PATH } from "../util.js"; export const { json, @@ -21,7 +21,7 @@ export const { export function denoBinary() { if (binary) { - return binary; + return resolve(binary); } return join(ROOT_PATH, `./target/${release ? "release" : "debug"}/deno`); }