From b8f6120b2e7a78a86314c9dbd34fd31abd0e6c7d Mon Sep 17 00:00:00 2001 From: dhruvang21 Date: Wed, 15 Oct 2025 18:53:37 +0530 Subject: [PATCH] Update rsync commands --- prepare.php | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/prepare.php b/prepare.php index 102d827..b58d7d6 100644 --- a/prepare.php +++ b/prepare.php @@ -320,11 +320,25 @@ function curl_selected_bits(\$k) { return in_array(\$k, array('version', 'ssl_ve } // Perform the rsync operation with the configured options and exclude patterns. - // This operation synchronizes the test environment with the prepared files, excluding version control directories - // and other non-essential files for test execution. - perform_operations( array( - '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'] ), - ) ); + // This operation synchronizes the test environment with the prepared files, excluding + // version control directories and other non-essential files for test execution. + perform_operations( + array( + 'rsync ' . $rsync_options + . ' --exclude=".git/"' + . ' --exclude="node_modules/"' + . ' --exclude="composer.phar"' + . ' --exclude=".cache/"' + . ' --exclude=".devcontainer/"' + . ' --exclude=".github/"' + . ' --exclude="tools/"' + // Exclude all subdirectories in tests/ except phpunit/. + . ' --exclude="tests/*" --include="tests/phpunit/**"' + . ' -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'] ), + ) + ); } // Log a success message indicating that the environment has been prepared.