From e98e0da8b218aa2b68d82ee7d777f499b10237aa Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Thu, 21 Jul 2022 14:15:15 +0530 Subject: fix(tools): upgrade to new `Deno.spawn` api (#15265) --- tools/wpt/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/wpt') diff --git a/tools/wpt/utils.ts b/tools/wpt/utils.ts index 80580928c..c77effa62 100644 --- a/tools/wpt/utils.ts +++ b/tools/wpt/utils.ts @@ -133,10 +133,10 @@ export function runPy>( } export async function checkPy3Available() { - const { status, stdout } = await runPy(["--version"], { + const { success, stdout } = await runPy(["--version"], { stdout: "piped", }).output(); - assert(status.success, "failed to run python --version"); + assert(success, "failed to run python --version"); const output = new TextDecoder().decode(stdout); assert( output.includes("Python 3."), @@ -148,13 +148,13 @@ export async function checkPy3Available() { export async function cargoBuild() { if (binary) return; - const { status } = await Deno.spawn("cargo", { + const { success } = await Deno.spawn("cargo", { args: ["build", ...(release ? ["--release"] : [])], cwd: ROOT_PATH, stdout: "inherit", stderr: "inherit", }); - assert(status.success, "cargo build failed"); + assert(success, "cargo build failed"); } export function escapeLoneSurrogates(input: string): string; -- cgit v1.2.3