[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: lingering
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: lingering |
Date: |
Fri, 07 Aug 2020 08:43:42 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit ee01e34a9a89ffbcb211eec6f6c64aa6b7530712
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Fri Aug 7 12:13:35 2020 +0530
lingering
---
packages/taler-integrationtests/src/harness.ts | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/packages/taler-integrationtests/src/harness.ts
b/packages/taler-integrationtests/src/harness.ts
index 20b8a994..6b848df5 100644
--- a/packages/taler-integrationtests/src/harness.ts
+++ b/packages/taler-integrationtests/src/harness.ts
@@ -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();
@@ -858,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.