From d7e1bce4c4da2a6a8eb9788a534a34587a849c4f Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Tue, 12 Nov 2024 17:34:57 +0100 Subject: [PATCH] Wait for site to be installed before running tests --- tests/init-template-starter.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/init-template-starter.sh b/tests/init-template-starter.sh index b5e1fde..8c4e0d4 100755 --- a/tests/init-template-starter.sh +++ b/tests/init-template-starter.sh @@ -25,6 +25,9 @@ cp ./tests/solr.php drupal/rootfs/var/www/drupal/ docker compose --profile dev up -d +printf "Waiting for installation..." +docker compose --profile dev exec drupal-dev timeout 600 bash -c "while ! test -f /installed; do sleep 5; done" + ./tests/ping.sh docker compose --profile dev exec drupal-dev drush scr solr.php