Skip to content

Commit

Permalink
chore(tools): update wpt setup to new spawn api (denoland#15407)
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn authored Aug 5, 2022
1 parent cf33720 commit bfdce3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/wpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ async function setup() {
`The WPT require certain entries to be present in your ${hostsPath} file. Should these be configured automatically?`,
);
if (autoConfigure) {
const { status, stdout } = await runPy(["wpt", "make-hosts-file"], {
const { success, stdout } = await runPy(["wpt", "make-hosts-file"], {
stdout: "piped",
}).output();
assert(status.success, "wpt make-hosts-file should not fail");
assert(success, "wpt make-hosts-file should not fail");
const entries = new TextDecoder().decode(stdout);
const file = await Deno.open(hostsPath, { append: true }).catch((err) => {
if (err instanceof Deno.errors.PermissionDenied) {
Expand Down

0 comments on commit bfdce3c

Please sign in to comment.