gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated (08ec98af -> ee01e34a)


From: gnunet
Subject: [taler-wallet-core] branch master updated (08ec98af -> ee01e34a)
Date: Fri, 07 Aug 2020 08:43:40 +0200

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

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

    from 08ec98af less verbosity, fix symlink direction
     new a5d8d534 actually only shut down once
     new ee01e34a lingering

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-integrationtests/src/harness.ts | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/packages/taler-integrationtests/src/harness.ts 
b/packages/taler-integrationtests/src/harness.ts
index 9e1faf5c..6b848df5 100644
--- a/packages/taler-integrationtests/src/harness.ts
+++ b/packages/taler-integrationtests/src/harness.ts
@@ -220,7 +220,7 @@ export class GlobalTestState {
   testDir: string;
   procs: ProcessWrapper[];
   servers: http.Server[];
-  inShutdown: false;
+  inShutdown: boolean = false;
   constructor(params: GlobalTestParams) {
     this.testDir = params.testDir;
     this.procs = [];
@@ -265,6 +265,11 @@ export class GlobalTestState {
   }
 
   private shutdownSync(): void {
+    if (shouldLingerAlways()) {
+      console.log("*** test finished, but requested to linger");
+      console.log("*** test state can be found under", this.testDir);
+      return;
+    }
     for (const s of this.servers) {
       s.close();
       s.removeAllListeners();
@@ -312,6 +317,7 @@ export class GlobalTestState {
     if (this.inShutdown) {
       return;
     }
+    this.inShutdown = true;
     console.log("shutting down");
     for (const s of this.servers) {
       s.close();
@@ -857,8 +863,19 @@ export interface MerchantInstanceConfig {
   defaultPayDelay?: time.Duration;
 }
 
+/**
+ * Check if the test should hang around after it failed.
+ */
 function shouldLinger(): boolean {
-  return process.env["TALER_TEST_KEEP"] == "1";
+  return process.env["TALER_TEST_LINGER"] == "1";
+}
+
+/**
+ * Check if the test should hang around even after it finished
+ * successfully.
+ */
+function shouldLingerAlways(): boolean {
+  return process.env["TALER_TEST_LINGER_ALWAYS"] == "1";
 }
 
 function updateCurrentSymlink(testDir: string): void {

-- 
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]