Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down