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

junit output ansi filter does not remove ESC[m #896

Open
peter-vreman opened this issue Apr 2, 2024 · 0 comments
Open

junit output ansi filter does not remove ESC[m #896

peter-vreman opened this issue Apr 2, 2024 · 0 comments
Labels
Component: Bash Code Everything regarding the bash code Priority: High Broken behavior in specific environments like in parallel mode or only on some operating systems Size: Small Changes to a few localized lines of code (e.g. same function) Type: Bug

Comments

@peter-vreman
Copy link

Describe the bug
bats 1.11.0 junit output ANSI Color filtering does not remove ESC[m still generating an invalid xml file

To Reproduce
Steps to reproduce the behavior:

  1. Create example file.bats with following contents

@test ansi-escape-m() { echo -e '\e[1mBold\e[mNormal' false }

Additional context
Changing the existing regex from
local REGEX="$CONTROL_CHAR[[0-9;]+m"
to
local REGEX="$CONTROL_CHAR[[0-9;]*m"
fixes the issue

@peter-vreman peter-vreman added Priority: NeedsTriage Issue has not been vetted yet Type: Bug labels Apr 2, 2024
@martin-schulze-vireso martin-schulze-vireso added Priority: High Broken behavior in specific environments like in parallel mode or only on some operating systems Component: Bash Code Everything regarding the bash code Size: Small Changes to a few localized lines of code (e.g. same function) and removed Priority: NeedsTriage Issue has not been vetted yet labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bash Code Everything regarding the bash code Priority: High Broken behavior in specific environments like in parallel mode or only on some operating systems Size: Small Changes to a few localized lines of code (e.g. same function) Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants