@@ -320,11 +320,25 @@ function curl_selected_bits(\$k) { return in_array(\$k, array('version', 'ssl_ve
320320 }
321321
322322 // Perform the rsync operation with the configured options and exclude patterns.
323- // This operation synchronizes the test environment with the prepared files, excluding version control directories
324- // and other non-essential files for test execution.
325- perform_operations ( array (
326- 'rsync ' . $ rsync_options . ' --exclude=".git/" --exclude="node_modules/" --exclude="composer.phar" -e "ssh ' . $ runner_vars ['WPT_SSH_OPTIONS ' ] . '" ' . escapeshellarg ( trailingslashit ( $ runner_vars ['WPT_PREPARE_DIR ' ] ) ) . ' ' . escapeshellarg ( $ runner_vars ['WPT_SSH_CONNECT ' ] . ': ' . $ runner_vars ['WPT_TEST_DIR ' ] ),
327- ) );
323+ // This operation synchronizes the test environment with the prepared files, excluding
324+ // version control directories and other non-essential files for test execution.
325+ perform_operations (
326+ array (
327+ 'rsync ' . $ rsync_options
328+ . ' --exclude=".git/" '
329+ . ' --exclude="node_modules/" '
330+ . ' --exclude="composer.phar" '
331+ . ' --exclude=".cache/" '
332+ . ' --exclude=".devcontainer/" '
333+ . ' --exclude=".github/" '
334+ . ' --exclude="tools/" '
335+ // Exclude all subdirectories in tests/ except phpunit/.
336+ . ' --exclude="tests/*" --include="tests/phpunit/**" '
337+ . ' -e "ssh ' . $ runner_vars ['WPT_SSH_OPTIONS ' ] . '" '
338+ . escapeshellarg ( trailingslashit ( $ runner_vars ['WPT_PREPARE_DIR ' ] ) )
339+ . ' ' . escapeshellarg ( $ runner_vars ['WPT_SSH_CONNECT ' ] . ': ' . $ runner_vars ['WPT_TEST_DIR ' ] ),
340+ )
341+ );
328342}
329343
330344// Log a success message indicating that the environment has been prepared.
0 commit comments