commit 3f2e0af9919658227a00b0bb18f4bd2de5acecb6 parent 4308b0f692aeeded28dc0274d4896b4cbe87b205 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 8 Apr 2026 18:43:16 +0200 improve currency detection heuristic for tests that do not start an exchange Diffstat:
| M | src/testing/taler-unified-setup.sh | | | 22 | ++++++++++++++++++---- |
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh @@ -276,11 +276,25 @@ fi STAGE="config" +if [ "1" = "$START_EXCHANGE" ] +then + CURRENCY=$(taler-exchange-config -c "$CONF" -s "EXCHANGE" -o "CURRENCY") +else + if [ "1" = "$START_DONAU" ] + then + CURRENCY=$(donau-config -c "$CONF" -s "DONAU" -o "CURRENCY") + else + if [ "1" = "$START_BANK" ] + then + # Note: would be nice to have libeufin-config in the future... + CURRENCY=$(taler-exchange-config -c "$CONF" -s "libeufin-bank" -o "CURRENCY") + else + CURRENCY="UNKNOWN" + fi + fi +fi -EXCHANGE_URL=$(taler-exchange-config -c "$CONF" -s "EXCHANGE" -o "BASE_URL") -CURRENCY=$(taler-exchange-config -c "$CONF" -s "EXCHANGE" -o "CURRENCY") - -echo "Setting up for $CURRENCY at $EXCHANGE_URL" +echo "Setting up for $CURRENCY" register_bank_account() { wget \