From 47ab7c4c41f4655280b3d84eb6f90582b5b1b822 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 13 Sep 2022 15:29:04 +0200 Subject: -fix test-sync --- src/auditor/test-auditor.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/auditor/test-auditor.sh') diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index 803d3ad92..92e242a1f 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -66,7 +66,7 @@ function cleanup() { if test ! -z ${EPID:-} then - echo -n "Stopping exchange..." + echo -n "Stopping exchange $EPID..." kill -TERM $EPID wait $EPID echo " DONE" @@ -96,12 +96,12 @@ function exit_cleanup() echo "Stopping Postgres at ${POSTGRES_PATH}" ${POSTGRES_PATH}/pg_ctl -D $TMPDIR -l /dev/null stop &> /dev/null || true fi + cleanup for n in `jobs -p` do kill $n 2> /dev/null || true done wait - cleanup echo "DONE" } @@ -282,6 +282,7 @@ function run_audit () { 2> taler-exchange-offline-drain.log || exit_fail "offline draining failed" kill -TERM $EPID wait $EPID + unset EPID echo -n "Running taler-exchange-drain ..." echo "\n" | taler-exchange-drain -L DEBUG -c $CONF 2> taler-exchange-drain.log || exit_fail "FAIL" echo " DONE" @@ -1531,7 +1532,7 @@ function test_24() { echo "===========24: deposits missing ===========" # Modify denom_sig, so it is wrong - CNT=`echo "SELECT COUNT(*) FROM exchange.deposit_confirmations;" | psql -Aqt $DB` + CNT=`echo "SELECT COUNT(*) FROM auditor.deposit_confirmations;" | psql -Aqt $DB` if test x$CNT = x0 then echo "Skipping deposits missing test: no deposit confirmations in database!" -- cgit v1.2.3