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

Ensure ZSH-related tests succeed when TERM variable is set to linux #497

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

ogayot
Copy link
Contributor

@ogayot ogayot commented Aug 2, 2024

ZSH tests are failing in the Ubuntu test infrastructure because the TERM variable is set to "linux". Ensure that the test-suite does not fail in this scenario.

I also added the --no-globalrcs option to the zsh invocation ; since --no-rcs only disables loading of $HOME/.zshrc

refs #496

Running the test-suite with TERM=linux causes the ZSH related tests to
fail. Fixed by hardcoding TERM="" when running the ZSH tests.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
While bash only has a single option for disabling bashrc loading, ZSH
comes with two options: one for $HOME/.zshrc and one for the global
zshrc (typically located in /etc). Pass both options to avoid surprises.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
@kislyuk kislyuk merged commit 042d091 into kislyuk:develop Aug 4, 2024
@kislyuk
Copy link
Owner

kislyuk commented Aug 4, 2024

Thank you!

@ogayot ogayot deleted the testsuite-TERM=linux branch August 5, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants