Skip to content

junitxml not filtering ^[ characters which causes jenkins reporting to fail #267

@pytestbot

Description

@pytestbot

Originally reported by: Anonymous


We have tests that wrap a binary tool in pexpect. If there is a problem with the test and we get a pexpect traceback where the junit results contain some xml characters that cause Jenkins junit reporter to fail and consequently not report results.
The culprit is "^[" (0x1b) that doesn't seem to be filtered out by pytest.

E       0: re.compile("Test threads created successfully")
E   buffer (last 100 chars):
E   before (last 100 chars): CANCEL) on thread 19, slot 1, serial number 1850653014!^M
E   **^[**[0m^M
E   ^M
E   Waiting for threads to terminate.^M
E
E   after: <class 'pexpect.EOF'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions