ci: WP_CORE_DIR needs trailing slash for ABSPATH substitution

The wp-tests-config.php substitution copies WP_CORE_DIR into ABSPATH
verbatim, then later WordPress concatenates wp-settings.php. Without
the trailing slash you get /tmp/wordpresswp-settings.php.

Agent-Session: cowork-pr-theme-tests-20260414
This commit is contained in:
peptiderepo
2026-04-14 17:04:57 +07:00
parent e64a2c101b
commit de7b826383

View File

@@ -99,7 +99,9 @@ jobs:
- name: Install WordPress test suite
env:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
WP_CORE_DIR: /tmp/wordpress
# Trailing slash matters: the bootstrap config substitutes this verbatim into ABSPATH,
# then concatenates 'wp-settings.php'. Without the slash you get '/tmp/wordpresswp-settings.php'.
WP_CORE_DIR: /tmp/wordpress/
run: |
chmod +x bin/install-wp-tests.sh
# 6th arg = skip-database-creation: the MySQL service already created wp_tests via MYSQL_DATABASE env.