summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cli/test_iban.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh
index d5bceda..4da6a32 100755
--- a/src/cli/test_iban.sh
+++ b/src/cli/test_iban.sh
@@ -62,23 +62,19 @@ trap cleanup EXIT
#echo " DONE"
if ! libeufin-cli --version &> /dev/null; then
- echo "libeufin-cli not found"
- exit 77;
+ exit_skip "libeufin-cli not found"
fi
if ! libeufin-nexus --version &> /dev/null; then
- echo "libeufin-nexus not found"
- exit 77;
+ exit_skip "libeufin-nexus not found"
fi
if ! libeufin-sandbox --version &> /dev/null; then
- echo "libeufin-sandbox not found"
- exit 77;
+ exit_skip "libeufin-sandbox not found"
fi
if ! psql -d anastasischeck -c "\q" &> /dev/null; then
- echo "Postgresql database 'anastasischeck' not reachable"
- exit 77
+ exit_skip "Postgresql database 'anastasischeck' not reachable"
fi
CURRENCY="TESTKUDOS"
@@ -91,8 +87,7 @@ echo "Starting Nexus .."
libeufin-nexus serve &> nexus.log &
nexus_pid=$!
if ! curl -s --retry 5 --retry-connrefused $NEXUS_URL > /dev/null; then
- echo "Could not launch Nexus"
- exit 77
+ exit_skip "Could not launch Nexus"
fi
echo "Nexus started."
@@ -100,8 +95,7 @@ echo "Starting Sandbox .."
libeufin-sandbox serve &> sandbox.log &
sandbox_pid=$!
if ! curl -s --retry 5 --retry-connrefused $SANDBOX_URL > /dev/null; then
- echo "Could not launch Sandbox"
- exit 77
+ exit_skip "Could not launch Sandbox"
fi
echo "Sandbox started."