Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use zsh as shell for macOS integration tests. #2883

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Nov 13, 2023

TaskDX-2142 Our macOS integration tests use zsh, not bash

@mitchell-as mitchell-as force-pushed the mitchell/dx-2142 branch 7 times, most recently from 5f0c75b to 177dada Compare November 13, 2023 23:16
@mitchell-as mitchell-as changed the title Use zsh as shell for macOS-specific job. Use zsh as shell for macOS integration tests. Nov 13, 2023
@mitchell-as mitchell-as force-pushed the mitchell/dx-2142 branch 2 times, most recently from 9233f42 to 7319fe3 Compare November 14, 2023 16:16
@mitchell-as mitchell-as requested a review from MDrakos November 14, 2023 16:21
@mitchell-as mitchell-as marked this pull request as ready for review November 14, 2023 16:21
@mitchell-as mitchell-as removed the request for review from MDrakos November 14, 2023 17:14
@mitchell-as mitchell-as marked this pull request as draft November 14, 2023 17:14
@mitchell-as
Copy link
Contributor Author

Previous "Test: all" was successful except for one installer test that has since been fixed. I just didn't want to wait another 40 minutes to confirm it passed.

@mitchell-as mitchell-as requested a review from MDrakos November 14, 2023 17:52
@mitchell-as mitchell-as marked this pull request as ready for review November 14, 2023 17:52
@@ -212,7 +208,7 @@ func (suite *InstallerIntegrationTestSuite) TestInstallerOverwriteServiceApp() {
)
cp.Expect("Done")
cp.SendLine("exit")
cp.ExpectExitCode(0)
cp.ExpectExit() // the return code can vary depending on shell (e.g. zsh vs. bash); just assert the installer shell exited
Copy link
Member

Choose a reason for hiding this comment

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

Will this type of check be necessary in other integration tests now?

It may be worth considering a new function that wraps ExpectExitCode() and ExpectExit() and uses either one depending on the current shell, but I will leave that up to your discretion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could rear its head in other installer tests, but in all of our other subshell tests that use "exit" followed by "ExpectExitCode(0)", the tests pass. Nathan found a similar issue with shells on Windows: 3d87ecb. It's something we'll have to live with I guess.

@mitchell-as mitchell-as merged commit 84e2f28 into version/0-43-0-RC1 Nov 14, 2023
6 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-2142 branch November 14, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants