diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-09-13 15:29:04 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-09-13 15:29:04 +0200 |
commit | 47ab7c4c41f4655280b3d84eb6f90582b5b1b822 (patch) | |
tree | 9b21445f1e2bd1c60c9ec4eb7c18cbc98d4c1196 /src/auditor/test-auditor.sh | |
parent | 1081f3edbfac616e94a96a1ea597faef4e75f053 (diff) | |
download | exchange-47ab7c4c41f4655280b3d84eb6f90582b5b1b822.tar.xz |
-fix test-sync
Diffstat (limited to 'src/auditor/test-auditor.sh')
-rwxr-xr-x | src/auditor/test-auditor.sh | 7 |
1 files changed, 4 insertions, 3 deletions
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!" |