summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-08-05 11:48:54 +0100
committerGitHub <noreply@github.com>2022-08-05 12:48:54 +0200
commitbfdce3cc35df84a1f77c418d32bca9866cc01dfa (patch)
tree6f3259cd9e20cfc9689f5d2a314350141ef9111b
parentcf33720a85953651cc221380723c5c2f33386fe3 (diff)
chore(tools): update wpt setup to new spawn api (#15407)
-rwxr-xr-xtools/wpt.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/wpt.ts b/tools/wpt.ts
index 615fbf752..ad30b95b4 100755
--- a/tools/wpt.ts
+++ b/tools/wpt.ts
@@ -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) {