summaryrefslogtreecommitdiff
path: root/tools/wpt/utils.ts
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2022-07-21 14:15:15 +0530
committerGitHub <noreply@github.com>2022-07-21 14:15:15 +0530
commite98e0da8b218aa2b68d82ee7d777f499b10237aa (patch)
tree05cc660c005c35bdc27a4f37be295a0f06a3ccee /tools/wpt/utils.ts
parentf0e01682cce638303e3b6997788667a0f71dff8d (diff)
fix(tools): upgrade to new `Deno.spawn` api (#15265)
Diffstat (limited to 'tools/wpt/utils.ts')
-rw-r--r--tools/wpt/utils.ts8
1 files changed, 4 insertions, 4 deletions
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<T extends Omit<Deno.SpawnOptions, "cwd">>(
}
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;