Skip to content

Get all tests running on MacOS#60

Merged
schlessera merged 3 commits intowp-cli:mainfrom
BrianHenryIE:macos-tests
Jun 30, 2022
Merged

Get all tests running on MacOS#60
schlessera merged 3 commits intowp-cli:mainfrom
BrianHenryIE:macos-tests

Conversation

@BrianHenryIE
Copy link
Copy Markdown
Member

@BrianHenryIE BrianHenryIE commented Jun 16, 2022

The sed syntax is different on MacOS than Ubuntu (i.e. the GitHub Actions runner) so running the tests fail for me during development. I have made the bash command conditional – check for Darwin and run the appropriate command. I have replaced sed with awk.

tar is returning a bad exit code causing the run statements to fail. I've changed these to try and the subsequent assertions in the tests should mean ignoring the exit code at that point is acceptable. This might make PR #58 pass too.

@BrianHenryIE BrianHenryIE marked this pull request as ready for review June 16, 2022 01:26
@BrianHenryIE BrianHenryIE requested a review from a team as a code owner June 16, 2022 01:26
@BrianHenryIE BrianHenryIE marked this pull request as draft June 16, 2022 01:29
@BrianHenryIE
Copy link
Copy Markdown
Member Author

Hmmm... looks like this caused them to fail on GitHub Actions! I'll try again another day.

@BrianHenryIE
Copy link
Copy Markdown
Member Author

I've replaced sed with awk which works identically on MacOS and the Github Actions runner.

@BrianHenryIE BrianHenryIE marked this pull request as ready for review June 17, 2022 23:32
@schlessera schlessera added the scope:testing Related to testing label Jun 30, 2022
@schlessera schlessera added this to the 2.0.2 milestone Jun 30, 2022
@schlessera schlessera merged commit 633e3bc into wp-cli:main Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants