diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-13 21:41:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-13 21:41:27 +0100 |
commit | 99847d50a7f6187e0327d825ec21df620bed952e (patch) | |
tree | d08951a3566154192e47da1f1fb76bbab248dbc4 /src/auditor | |
parent | 9c3fd5dff7e3ce23b72d748fb566786432c7d4cf (diff) | |
download | exchange-99847d50a7f6187e0327d825ec21df620bed952e.tar.xz |
improve logging
Diffstat (limited to 'src/auditor')
-rwxr-xr-x | src/auditor/test-auditor.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index 9912a02af..65e77b04d 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -59,7 +59,7 @@ LIBEUFIN_SETTLE_TIME=1 # Cleanup exchange and libeufin between runs. function cleanup() { - if test ! -z "${EPID:-}" + if [ ! -z "${EPID:-}" ] then echo -n "Stopping exchange $EPID..." kill -TERM "$EPID" @@ -74,7 +74,7 @@ function cleanup() function exit_cleanup() { echo "Running exit-cleanup" - if test ! -z "${POSTGRES_PATH:-}" + if [ ! -z "${POSTGRES_PATH:-}" ] then echo "Stopping Postgres at ${POSTGRES_PATH}" "${POSTGRES_PATH}/pg_ctl" \ @@ -136,7 +136,7 @@ function pre_audit () { exit_skip "Failed to launch Nexus" fi echo " DONE" - if test "${1:-no}" = "aggregator" + if [ "${1:-no}" = "aggregator" ] then echo -n "Running exchange aggregator ..." taler-exchange-aggregator \ @@ -313,7 +313,7 @@ function post_audit () { # Pass "drain" as $2 to run a drain operation as well. function run_audit () { pre_audit "${1:-no}" - if test "${2:-no}" = "drain" + if [ "${2:-no}" = "drain" ] then echo -n "Starting exchange..." taler-exchange-httpd \ |