gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: add --quiet flag to test runn


From: gnunet
Subject: [taler-wallet-core] branch master updated: add --quiet flag to test runner
Date: Thu, 17 Jun 2021 14:18:11 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new a7c1f7d0 add --quiet flag to test runner
a7c1f7d0 is described below

commit a7c1f7d012d02c0ecf4c3374d3e1c13219ad1d41
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jun 17 14:18:05 2021 +0200

    add --quiet flag to test runner
---
 packages/taler-wallet-cli/src/index.ts                       | 4 ++++
 packages/taler-wallet-cli/src/integrationtests/testrunner.ts | 7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-cli/src/index.ts 
b/packages/taler-wallet-cli/src/index.ts
index 695f5fd6..3949444a 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -886,11 +886,15 @@ testCli
   .flag("dryRun", ["--dry"], {
     help: "Only print tests that will be selected to run.",
   })
+  .flag("quiet", ["--quiet"], {
+    help: "Produce less output.",
+  })
   .action(async (args) => {
     await runTests({
       includePattern: args.runIntegrationtests.pattern,
       suiteSpec: args.runIntegrationtests.suites,
       dryRun: args.runIntegrationtests.dryRun,
+      verbosity: args.runIntegrationtests.quiet ? 0 : 1,
     });
   });
 
diff --git a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts 
b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts
index c2bb69c1..a42c79ac 100644
--- a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts
@@ -138,6 +138,7 @@ export interface TestRunSpec {
   includePattern?: string;
   suiteSpec?: string;
   dryRun?: boolean;
+  verbosity: number;
 }
 
 export interface TestInfo {
@@ -244,8 +245,10 @@ export async function runTests(spec: TestRunSpec) {
     const harnessLogFilename = path.join(testRootDir, testName, "harness.log");
     const harnessLogStream = fs.createWriteStream(harnessLogFilename);
 
-    currentChild.stderr?.pipe(process.stderr);
-    currentChild.stdout?.pipe(process.stdout);
+    if (spec.verbosity > 0) {
+      currentChild.stderr?.pipe(process.stderr);
+      currentChild.stdout?.pipe(process.stdout);
+    }
 
     currentChild.stdout?.pipe(harnessLogStream);
     currentChild.stderr?.pipe(harnessLogStream);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]