diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-28 18:01:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-28 18:01:50 +0200 |
commit | d089c31e5e5dcab03c6988d87c61c839e447b05b (patch) | |
tree | 00763ee455f8797ffe938b804e606458ee903992 /src/auditor/test-revocation.sh | |
parent | 52b5428e3e72474da69737be5c92327890430eee (diff) |
fix test logic: initialize $WALLET_DB and fix cleanup logic of generate-auditor-basedb.sh
Diffstat (limited to 'src/auditor/test-revocation.sh')
-rwxr-xr-x | src/auditor/test-revocation.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/auditor/test-revocation.sh b/src/auditor/test-revocation.sh index ac1f4dcc8..a65ba1961 100755 --- a/src/auditor/test-revocation.sh +++ b/src/auditor/test-revocation.sh @@ -42,7 +42,10 @@ function exit_fail() { # Cleanup to run whenever we exit function cleanup() { - kill `jobs -p` >/dev/null 2>/dev/null || true + for n in `jobs -p` + do + kill $n 2> /dev/null || true + done wait } @@ -117,9 +120,7 @@ function audit_only () { # Cleanup to run after the auditor function post_audit () { - kill -TERM `jobs -p` >/dev/null 2>/dev/null || true - echo -n "Waiting for servers to die ..." - wait + cleanup echo "DONE" echo -n "TeXing ." taler-helper-auditor-render.py test-audit-aggregation.json test-audit-coins.json test-audit-deposits.json test-audit-reserves.json test-audit-wire.json < ../../contrib/auditor-report.tex.j2 > test-report.tex || exit_fail "Renderer failed" |