Skip to content

Commit

Permalink
E2E Tests: Ensure WP updates to latest minor (#12060)
Browse files Browse the repository at this point in the history
  • Loading branch information
timarney authored Aug 12, 2022
1 parent ea5ddba commit 1951e3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/local-env/install-wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ fi
echo -e $(status_message "Installing WordPress...")
wp core install --title="$SITE_TITLE" --admin_user=admin --admin_password=password [email protected] --skip-email --url=http://localhost:$HOST_PORT --quiet

# Potentially update WordPress
if [ "$WP_VERSION" == "latest" ]; then
# Potentially update WordPress
echo -e $(status_message "Updating WordPress")
echo -e $(status_message "Updating WordPress to the latest major")
wp core update --force --quiet
else
echo -e $(status_message "Updating WordPress to the latest minor")
wp core update --minor --force --quiet
fi

# Create additional users.
Expand Down

0 comments on commit 1951e3a

Please sign in to comment.