summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-09-01 13:03:15 -0300
committerSebastian <sebasjm@gmail.com>2021-09-01 13:03:20 -0300
commit98d9dfb8c8637b8902e8b7f249834f807fa3e322 (patch)
tree26888b14c7fdf0a9b117452b8a4081d20a6ee85d
parenta9c438700f56b76b6b879e2cfa2363921e95d0f0 (diff)
downloadmerchant-98d9dfb8c8637b8902e8b7f249834f807fa3e322.tar.gz
merchant-98d9dfb8c8637b8902e8b7f249834f807fa3e322.tar.bz2
merchant-98d9dfb8c8637b8902e8b7f249834f807fa3e322.zip
wait for secmod rsa to build the keys
-rwxr-xr-xsrc/testing/initialize_taler_system.sh7
1 files changed, 6 insertions, 1 deletions
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