Skip to content

Fix sed delimiter conflict with Windows-style paths in install-wp-tests.sh#383

Merged
swissspidy merged 3 commits intomainfrom
copilot/fix-sed-command-windows-paths
Apr 14, 2026
Merged

Fix sed delimiter conflict with Windows-style paths in install-wp-tests.sh#383
swissspidy merged 3 commits intomainfrom
copilot/fix-sed-command-windows-paths

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

  • Fix sed delimiter conflict with Windows paths in install-wp-tests.sh (lines 231-232: change : delimiter to |)
  • Escape special sed replacement characters (\, |, &) in $WP_CORE_DIR before use in substitution

Copilot AI linked an issue Apr 14, 2026 that may be closed by this pull request
2 tasks
@github-actions github-actions bot added bug command:scaffold-plugin-tests Related to 'scaffold plugin-tests' command scope:testing Related to testing labels Apr 14, 2026
Copilot AI changed the title [WIP] Fix sed command failure with Windows paths Fix sed delimiter conflict with Windows-style paths in install-wp-tests.sh Apr 14, 2026
Copilot AI requested a review from swissspidy April 14, 2026 15:41
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy marked this pull request as ready for review April 14, 2026 17:01
@swissspidy swissspidy requested a review from a team as a code owner April 14, 2026 17:01
Copilot AI review requested due to automatic review settings April 14, 2026 17:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes install-wp-tests.sh failing when WP_CORE_DIR is provided as a Windows drive path (e.g., C:/...) by avoiding : as the sed substitution delimiter.

Changes:

  • Switch the two sed substitutions that inject $WP_CORE_DIR into wp-tests-config.php from : to | delimiters to prevent delimiter conflicts with Windows drive letters.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@swissspidy swissspidy added this to the 2.5.6 milestone Apr 14, 2026
@swissspidy swissspidy merged commit 1f42cac into main Apr 14, 2026
62 checks passed
@swissspidy swissspidy deleted the copilot/fix-sed-command-windows-paths branch April 14, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:scaffold-plugin-tests Related to 'scaffold plugin-tests' command scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sed command fails when using Windows paths - colon delimeter interferes with path

3 participants