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

scripts: twister: Fix trailing CR/LF at BinaryHandler logs #78958

Merged

Conversation

golowanow
Copy link
Member

@golowanow golowanow commented Sep 24, 2024

Fix trailing \\r\\n (escaped CR/LF) didn't cut off because of rstrip() removed by #58338,
so the CR/LF suffix was never found as the actual line end was \\r\\n\n.

Add ANSI code sequence to test_handlers Twister unit test.

// AFAIK, the issue should affect only Simics simulators.

Fix trailing `\\r\\n` (escaped CR/LF) didn't cut off because of rstrip()
removed by zephyrproject-rtos#58338, so the CR/LF suffix was never found as the actual line
end was `\\r\\n\n`.

Add ANSI code sequence to `test_handlers` Twister unit test.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
@golowanow golowanow marked this pull request as ready for review September 25, 2024 12:24
@zephyrbot zephyrbot added the area: Twister Twister label Sep 25, 2024
@golowanow golowanow added the bug The issue is a bug, or the PR is fixing a bug label Sep 25, 2024
@fabiobaltieri fabiobaltieri merged commit 2ddab56 into zephyrproject-rtos:main Sep 27, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Twister Twister bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants