summaryrefslogtreecommitdiff
path: root/std/fs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-11-20 18:01:58 +0100
committerGitHub <noreply@github.com>2020-11-20 18:01:58 +0100
commite35e8981f0280905836d3b68fd5ceb6e3c2bc270 (patch)
tree6dafe7635d79c8b2c92fb32bfc43e33b46c77a25 /std/fs
parent91f293442d5bfb28212b5b13b536ceae06427c99 (diff)
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.
Diffstat (limited to 'std/fs')
-rw-r--r--std/fs/empty_dir_test.ts2
-rw-r--r--std/fs/exists_test.ts2
-rw-r--r--std/fs/expand_glob_test.ts8
3 files changed, 9 insertions, 3 deletions
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<void> {
- 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<void> {
Deno.test("expandGlobPermError", async function (): Promise<void> {
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",