Skip to content

Commit

Permalink
Remove redirect_output for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
annemirasol committed Dec 17, 2024
1 parent 2d5c373 commit 291a8a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/e2e/bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ if ! docker info > /dev/null 2>&1; then
fi

step "Starting E2E docker containers"
redirect_output docker context use default
CWD="$CWD" E2E_ROOT="$E2E_ROOT" redirect_output docker compose -p wcstripe-e2e -f "$E2E_ROOT"/env/docker-compose.yml up --build --force-recreate -d wordpress
docker context use default
CWD="$CWD" E2E_ROOT="$E2E_ROOT" docker compose -p wcstripe-e2e -f "$E2E_ROOT"/env/docker-compose.yml up --build --force-recreate -d wordpress

step "Configuring Wordpress"
step "Configuring WordPress"
# Wait for containers to be started up before setup.
# The db being accessible means that the db container started and the WP has been downloaded and the plugin linked
set +e
redirect_output cli wp db check --path=/var/www/html --quiet
cli wp db check --path=/var/www/html --quiet
while [[ $? -ne 0 ]]; do
echo " - Waiting for containers..."
sleep 5
redirect_output cli wp db check --path=/var/www/html --quiet
sleep 10
cli wp db check --path=/var/www/html --quiet
done
set -e

Expand Down

0 comments on commit 291a8a1

Please sign in to comment.