[E2E] Fix `wp-content/upgrade` folder permissions to fix recently failing daily and release tests (#37783)

This commit is contained in:
nigeljamesstevenson 2023-04-18 10:49:42 +01:00 committed by GitHub
commit b78e320c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Fix recent failures in "Smoke test release" workflow.

View File

@ -8,7 +8,9 @@ echo -e 'Normalize permissions for wp-content directory \n'
docker-compose -f $(wp-env install-path)/docker-compose.yml run --rm -u www-data -e HOME=/tmp tests-wordpress sh -c "chmod -c ugo+w /var/www/html/wp-config.php \
&& chmod -c ugo+w /var/www/html/wp-content \
&& chmod -c ugo+w /var/www/html/wp-content/themes \
&& chmod -c ugo+w /var/www/html/wp-content/plugins"
&& chmod -c ugo+w /var/www/html/wp-content/plugins \
&& mkdir -p /var/www/html/wp-content/upgrade \
&& chmod -c ugo+w /var/www/html/wp-content/upgrade"
docker-compose -f $(wp-env install-path)/docker-compose.yml run --rm -u www-data -e HOME=/tmp tests-cli sh -c "ls \
&& wp theme install twentynineteen --activate \