Skip to content

Commit

Permalink
Docker: do not fatal if test data is not symlinked (#41635)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj authored Feb 7, 2025
1 parent b7813eb commit c99d1d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/docker/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ if [ "$COMPOSE_PROJECT_NAME" == "jetpack_dev" ] ; then
# Symlink jetpack into wordpress-develop for WP >= 5.6-beta1
WP_TESTS_JP_DIR="/tmp/wordpress-develop/tests/phpunit/data/plugins/jetpack"
if [ ! -L $WP_TESTS_JP_DIR ] || [ ! -e $WP_TESTS_JP_DIR ]; then
ln -s /var/www/html/wp-content/plugins/jetpack $WP_TESTS_JP_DIR
mkdir -p "$(dirname "$WP_TESTS_JP_DIR")" || true
ln -s /var/www/html/wp-content/plugins/jetpack $WP_TESTS_JP_DIR || {
echo "Warning: Failed to create symlink for test environment. This is non-fatal."
echo "Jetpack plugin PHPUnit tests will not run until this is resolved."
}
fi
fi

Expand Down

0 comments on commit c99d1d8

Please sign in to comment.