mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
tests: fix bug in WPT test harness (#10920)
This commit is contained in:
parent
abd7a8a9cd
commit
5a250b9e55
3 changed files with 6 additions and 5 deletions
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue