From e382ada8c6fd4903d4788af403f5418ca66e3ca3 Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Fri, 7 Feb 2025 09:05:02 -0600 Subject: [PATCH] Docker: do not fatal if test data is not symlinked --- tools/docker/bin/run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/docker/bin/run.sh b/tools/docker/bin/run.sh index 1d02ce843f06f..b584aa5ae1c77 100755 --- a/tools/docker/bin/run.sh +++ b/tools/docker/bin/run.sh @@ -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