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

Fixed color test when TERM=dumb #12244

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ReillyBrogan
Copy link

Dumb terminals are incapable of handling color, so this test would fail when ran in such an environment. We encountered this on the Solus build infrastructure which uses such a headless terminal.

Dumb terminals are incapable of handling color, so this test would fail when ran in such an environment
Copy link
Member

@The-Compiler The-Compiler left a comment

Choose a reason for hiding this comment

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

I don't think the test needs to be skipped if NO_COLOR is set, as monkeypatch in the test already takes care of that.

In the same vein, couldn't the test just set TERM to a known value instead of skipping the test, to make it work no matter what the "outside" TERM is?

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.

None yet

2 participants