[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: -fix trap logic
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: -fix trap logic |
Date: |
Sat, 21 Aug 2021 08:36:47 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new ff2a923 -fix trap logic
ff2a923 is described below
commit ff2a923942bad8d193d32a985e46a1ed13d392b4
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Aug 21 08:36:40 2021 +0200
-fix trap logic
---
src/cli/test_iban.sh | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh
index a7695e5..d5bceda 100755
--- a/src/cli/test_iban.sh
+++ b/src/cli/test_iban.sh
@@ -2,6 +2,31 @@
set -eu
+# Exit, with status code "skip" (no 'real' failure)
+function exit_skip() {
+ echo " SKIP: $1"
+ exit 77
+}
+
+# Exit, with error message (hard failure)
+function exit_fail() {
+ echo " FAIL: $1"
+ exit 1
+}
+
+# Cleanup to run whenever we exit
+function cleanup()
+{
+ for n in `jobs -p`
+ do
+ kill $n 2> /dev/null || true
+ done
+ wait
+}
+
+# Install cleanup handler (except for kill -9)
+trap cleanup EXIT
+
# Script's guidelines:
#* uses 'CURRENCY=TESTKUDOS' and uses $CURRENCY for all
@@ -86,8 +111,6 @@ echo "Sandbox started."
#libeufin-sandbox serve &> sandbox.log &
#sandbox_pid=$!
#
-# FIXME: not always both services get killed.
-trap "echo Terminating services.; kill $nexus_pid; kill $sandbox_pid" EXIT
#
#curl -s --retry 5 --retry-connrefused $NEXUS_URL > /dev/null
#curl -s --retry 5 --retry-connrefused $SANDBOX_URL > /dev/null
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: -fix trap logic,
gnunet <=