diff --git a/examples/cat_test.ts b/examples/cat_test.ts index cd88d1f3d..e151d5c62 100644 --- a/examples/cat_test.ts +++ b/examples/cat_test.ts @@ -10,6 +10,7 @@ Deno.test("[examples/cat] print multiple files", async () => { cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "cat.ts", "testdata/cat/hello.txt", diff --git a/examples/catj_test.ts b/examples/catj_test.ts index 031a161c9..7a2d968f4 100644 --- a/examples/catj_test.ts +++ b/examples/catj_test.ts @@ -82,7 +82,14 @@ function catj( ...files: string[] ): Deno.Process { return Deno.run({ - cmd: [Deno.execPath(), "run", "--allow-read", "catj.ts", ...files], + cmd: [ + Deno.execPath(), + "run", + "--quiet", + "--allow-read", + "catj.ts", + ...files, + ], cwd: moduleDir, stdin: "piped", stdout: "piped", diff --git a/examples/chat/server_test.ts b/examples/chat/server_test.ts index 5e30b4ba7..9bc1c9823 100644 --- a/examples/chat/server_test.ts +++ b/examples/chat/server_test.ts @@ -14,6 +14,7 @@ async function startServer(): Promise< cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-net", "--allow-read", "server.ts", diff --git a/examples/colors_test.ts b/examples/colors_test.ts index fd9aa21da..cf3b8f4c6 100644 --- a/examples/colors_test.ts +++ b/examples/colors_test.ts @@ -7,7 +7,7 @@ const moduleDir = dirname(fromFileUrl(import.meta.url)); Deno.test("[examples/colors] print a colored text", async () => { const decoder = new TextDecoder(); const process = Deno.run({ - cmd: [Deno.execPath(), "run", "colors.ts"], + cmd: [Deno.execPath(), "run", "--quiet", "colors.ts"], cwd: moduleDir, stdout: "piped", }); diff --git a/examples/curl_test.ts b/examples/curl_test.ts index 63b78bff6..86beec79b 100644 --- a/examples/curl_test.ts +++ b/examples/curl_test.ts @@ -20,6 +20,7 @@ Deno.test({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-net", "curl.ts", "http://localhost:8081", diff --git a/examples/echo_server_test.ts b/examples/echo_server_test.ts index 5334cb610..9a0e34e3d 100644 --- a/examples/echo_server_test.ts +++ b/examples/echo_server_test.ts @@ -9,7 +9,7 @@ Deno.test("[examples/echo_server]", async () => { const encoder = new TextEncoder(); const decoder = new TextDecoder(); const process = Deno.run({ - cmd: [Deno.execPath(), "run", "--allow-net", "echo_server.ts"], + cmd: [Deno.execPath(), "run", "--quiet", "--allow-net", "echo_server.ts"], cwd: moduleDir, stdout: "piped", }); diff --git a/examples/test.ts b/examples/test.ts index a7b09d5bc..cf4d821f9 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -19,6 +19,7 @@ Deno.test("catSmoke", async function (): Promise { cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", relative(Deno.cwd(), resolve(moduleDir, "cat.ts")), relative(Deno.cwd(), resolve(moduleDir, "..", "README.md")), diff --git a/examples/welcome_test.ts b/examples/welcome_test.ts index 626527bca..43da0e87b 100644 --- a/examples/welcome_test.ts +++ b/examples/welcome_test.ts @@ -7,7 +7,7 @@ const moduleDir = dirname(fromFileUrl(import.meta.url)); Deno.test("[examples/welcome] print a welcome message", async () => { const decoder = new TextDecoder(); const process = Deno.run({ - cmd: [Deno.execPath(), "run", "welcome.ts"], + cmd: [Deno.execPath(), "run", "--quiet", "welcome.ts"], cwd: moduleDir, stdout: "piped", }); diff --git a/examples/xeval_test.ts b/examples/xeval_test.ts index 6d24d08bb..fc244d853 100644 --- a/examples/xeval_test.ts +++ b/examples/xeval_test.ts @@ -38,6 +38,7 @@ Deno.test({ cmd: [ Deno.execPath(), "run", + "--quiet", xevalPath, "--replvar=abc", "console.log(abc)", @@ -58,7 +59,7 @@ Deno.test({ Deno.test("xevalCliSyntaxError", async function (): Promise { const p = Deno.run({ - cmd: [Deno.execPath(), "run", xevalPath, "("], + cmd: [Deno.execPath(), "run", "--quiet", xevalPath, "("], cwd: moduleDir, stdin: "null", stdout: "piped", diff --git a/fs/empty_dir_test.ts b/fs/empty_dir_test.ts index 6c3406115..aaee1b9d9 100644 --- a/fs/empty_dir_test.ts +++ b/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/fs/exists_test.ts b/fs/exists_test.ts index 6619cce10..a3243aec9 100644 --- a/fs/exists_test.ts +++ b/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/fs/expand_glob_test.ts b/fs/expand_glob_test.ts index 768c6465a..307cf0101 100644 --- a/fs/expand_glob_test.ts +++ b/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", diff --git a/http/file_server_test.ts b/http/file_server_test.ts index ca8d3b3b2..5f7137998 100644 --- a/http/file_server_test.ts +++ b/http/file_server_test.ts @@ -25,6 +25,7 @@ async function startFileServer({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "file_server.ts", @@ -50,6 +51,7 @@ async function startFileServerAsLibrary({}: FileServerCfg = {}): Promise { cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "testdata/file_server_as_library.ts", @@ -205,6 +207,7 @@ Deno.test("printHelp", async function (): Promise { cmd: [ Deno.execPath(), "run", + "--quiet", // TODO(ry) It ought to be possible to get the help output without // --allow-read. "--allow-read", @@ -264,6 +267,7 @@ async function startTlsFileServer({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "file_server.ts", @@ -319,6 +323,7 @@ Deno.test("partial TLS arguments fail", async function (): Promise { cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "file_server.ts", diff --git a/http/racing_server_test.ts b/http/racing_server_test.ts index b8336abcd..5e253c6cd 100644 --- a/http/racing_server_test.ts +++ b/http/racing_server_test.ts @@ -9,7 +9,7 @@ const moduleDir = dirname(fromFileUrl(import.meta.url)); let server: Deno.Process; async function startServer(): Promise { server = Deno.run({ - cmd: [Deno.execPath(), "run", "-A", "racing_server.ts"], + cmd: [Deno.execPath(), "run", "--quiet", "-A", "racing_server.ts"], cwd: moduleDir, stdout: "piped", }); diff --git a/http/server_test.ts b/http/server_test.ts index e7a1c42dc..8a3be71c2 100644 --- a/http/server_test.ts +++ b/http/server_test.ts @@ -370,6 +370,7 @@ Deno.test({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-net", "testdata/simple_server.ts", ], @@ -415,6 +416,7 @@ Deno.test({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-net", "--allow-read", "testdata/simple_https_server.ts",