mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
chore(tools): update wpt setup to new spawn api (#15407)
This commit is contained in:
parent
44ade24fb2
commit
67f75091ca
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user