From e35e8981f0280905836d3b68fd5ceb6e3c2bc270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 20 Nov 2020 18:01:58 +0100 Subject: test(std): make test output less noisy (#8445) This commit makes output of std/ tests less noisy by passing "--quiet" flag to Deno subprocesses run as part of test suite. --- std/fs/empty_dir_test.ts | 2 +- std/fs/exists_test.ts | 2 +- std/fs/expand_glob_test.ts | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'std/fs') diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index 6c3406115..aaee1b9d9 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -204,7 +204,7 @@ for (const s of scenes) { ); try { - const args = [Deno.execPath(), "run"]; + const args = [Deno.execPath(), "run", "--quiet"]; if (s.read) { args.push("--allow-read"); diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index 6619cce10..a3243aec9 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -113,7 +113,7 @@ for (const s of scenes) { let title = `test ${s.async ? "exists" : "existsSync"}("testdata/${s.file}")`; title += ` ${s.read ? "with" : "without"} --allow-read`; Deno.test(`[fs] existsPermission ${title}`, async function (): Promise { - const args = [Deno.execPath(), "run"]; + const args = [Deno.execPath(), "run", "--quiet"]; if (s.read) { args.push("--allow-read"); diff --git a/std/fs/expand_glob_test.ts b/std/fs/expand_glob_test.ts index 768c6465a..307cf0101 100644 --- a/std/fs/expand_glob_test.ts +++ b/std/fs/expand_glob_test.ts @@ -119,7 +119,13 @@ Deno.test("expandGlobIncludeDirs", async function (): Promise { Deno.test("expandGlobPermError", async function (): Promise { const exampleUrl = new URL("testdata/expand_wildcard.js", import.meta.url); const p = Deno.run({ - cmd: [Deno.execPath(), "run", "--unstable", exampleUrl.toString()], + cmd: [ + Deno.execPath(), + "run", + "--quiet", + "--unstable", + exampleUrl.toString(), + ], stdin: "null", stdout: "piped", stderr: "piped", -- cgit v1.2.3