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

Fix for test_pty_no_color when cache is cleared. NFC #17412

Closed
wants to merge 1 commit into from

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jul 11, 2022

Withouth this change the color message that emscripten generated when
it sets up the sysroot will cause the test to fail.

@sbc100 sbc100 force-pushed the test_pty_no_color branch 2 times, most recently from 5a999b0 to d4b3f8d Compare July 12, 2022 21:57
@sbc100 sbc100 requested a review from kripken July 12, 2022 21:57
})
@no_windows('ptys and select are not available on windows')
def test_pty_no_color(self, flag):
# Ensure that the sysroot is already constructed so that emcc doesn't
# output any log information in color.
self.emcc(test_file('hello_world.c'), ['-c'])
Copy link
Member

Choose a reason for hiding this comment

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

why is this needed? shouldn't the flag affect colors in the sysroot construction logging?

Copy link
Collaborator Author

@sbc100 sbc100 Jul 13, 2022

Choose a reason for hiding this comment

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

No the -fno-diagnostics-color currently only effects clang... I guess we could change it to also effect python's logging module, but it doesn't do that today.

I guess I could file a bug? But its seems like maybe its not worth it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(BTW we don't use python's logging mechaism for emcc error or warnings... it really only used for debugging and for niche cases like this where we report building of internal libraries).

So normal errors and warnings that emcc generates are not effected by this.

Copy link
Member

Choose a reason for hiding this comment

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

I see, makes sense. lgtm with an explanation of that in the test code.

@sbc100 sbc100 force-pushed the test_pty_no_color branch 3 times, most recently from e0339f3 to 9a8abad Compare July 14, 2022 14:06
@sbc100
Copy link
Collaborator Author

sbc100 commented Jul 14, 2022

Looks like the fix for this depends on #17434

Withouth this change the color message that emscripten generated when
it sets up the sysroot will cause the test to fail.
@sbc100 sbc100 force-pushed the test_pty_no_color branch from 9a8abad to c8f78e5 Compare February 8, 2024 08:07
@sbc100 sbc100 closed this Feb 8, 2024
@sbc100 sbc100 deleted the test_pty_no_color branch February 8, 2024 08:20
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