mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore(tools): update wpt setup to new spawn api (#15407)
This commit is contained in:
parent
cf33720a85
commit
bfdce3cc35
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue