From 98d9dfb8c8637b8902e8b7f249834f807fa3e322 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 1 Sep 2021 13:03:15 -0300 Subject: wait for secmod rsa to build the keys --- src/testing/initialize_taler_system.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/testing/initialize_taler_system.sh b/src/testing/initialize_taler_system.sh index 218de4bf..15e59988 100755 --- a/src/testing/initialize_taler_system.sh +++ b/src/testing/initialize_taler_system.sh @@ -138,6 +138,11 @@ taler-auditor-httpd -L INFO -c $CONF 2> taler-auditor-httpd.log & echo " OK" +echo -n "Wait RSA service to build keys..." +( tail -f -n0 taler-exchange-secmod-rsa.log & ) | grep -q "Sending RSA SYNCED message" +echo " done" + +echo -n "Waiting for the bank" # Wait for bank to be available (usually the slowest) for n in `seq 1 50` do @@ -145,7 +150,7 @@ do sleep 0.2 OK=0 # bank - wget --tries=1 --timeout=1 http://localhost:8082/ -o /dev/null -O /dev/null >/dev/null || continue + wget --waitretry=0 --timeout=1 http://localhost:8082/ -o /dev/null -O /dev/null >/dev/null || continue OK=1 break done -- cgit v1.2.3