From 4d07ed0efa8f0e2cab1a33f1b7b6a3627bfce69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 2 Dec 2022 14:43:17 +0100 Subject: chore: rewrite tests and utils to use Deno.Command API (#16895) Since "Deno.spawn()", "Deno.spawnSync()" and "Deno.spawnChild" are getting deprecated, this commits rewrites all tests and utilities to use "Deno.Command" API instead. --- tools/wgpu_sync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/wgpu_sync.js') diff --git a/tools/wgpu_sync.js b/tools/wgpu_sync.js index 4d343878b..7548c5515 100755 --- a/tools/wgpu_sync.js +++ b/tools/wgpu_sync.js @@ -9,12 +9,12 @@ const V_WGPU = "0.13"; const TARGET_DIR = join(ROOT_PATH, "ext", "webgpu"); async function bash(subcmd, opts = {}) { - const { success, code } = await Deno.spawn("bash", { + const { success, code } = await new Deno.Command("bash", { ...opts, args: ["-c", subcmd], stdout: "inherit", sdterr: "inherit", - }); + }).output(); // Exit process on failure if (!success) { -- cgit v1.2.3