exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d8cac4841d463da6083fa32e9160b10a9aa2ecb8
parent 961211bf896c08ba9ff444b4de541b2dedae4395
Author: Özgür Kesim <oec-taler@kesim.org>
Date:   Tue, 17 Dec 2024 13:02:48 +0100

[auditor] give helpful message in buildbot on failure

Diffstat:
Msrc/auditor/generate-auditor-basedb.sh | 7++++++-
Msrc/auditor/generate-revoke-basedb.sh | 7++++++-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/auditor/generate-auditor-basedb.sh b/src/auditor/generate-auditor-basedb.sh @@ -107,6 +107,7 @@ export WALLET_DB="wallet.wdb" rm -f "$WALLET_DB" echo -n "Running wallet ..." +wlog="taler-wallet-cli-withdraw.log" taler-wallet-cli \ --no-throttle \ --wallet-db="$WALLET_DB" \ @@ -124,7 +125,11 @@ taler-wallet-cli \ --arg MERCHANT_URL "$MERCHANT_URL" \ --arg EXCHANGE_URL "$EXCHANGE_URL" \ --arg BANK_URL "$BANK_URL" - )" &> taler-wallet-cli.log + )" &> $wlog || { + echo " FAILED! Last lines from $wlog:" + tail $wlog + exit 2 + } echo " DONE" taler-wallet-cli --wallet-db="$WALLET_DB" run-until-done diff --git a/src/auditor/generate-revoke-basedb.sh b/src/auditor/generate-revoke-basedb.sh @@ -47,6 +47,7 @@ echo "Running wallet" export WALLET_DB="wallet.wdb" rm -f "$WALLET_DB" +wlog="taler-wallet-cli-withdraw.log" taler-wallet-cli \ --no-throttle \ --wallet-db="$WALLET_DB" \ @@ -60,7 +61,11 @@ taler-wallet-cli \ }' \ --arg BANK_URL "$BANK_URL" \ --arg EXCHANGE_URL "$EXCHANGE_URL" - )" &> taler-wallet-cli-withdraw.log + )" &> $wlog || { + echo " FAILED(withdraw)! Last entries in $wlog:" + tail $wlog + exit 2 +} taler-wallet-cli \ --no-throttle \