aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorHenrik G. Olsson <hnrklssn@gmail.com>2024-09-11 16:39:28 -0700
committerGitHub <noreply@github.com>2024-09-11 16:39:28 -0700
commit828783177f71d95522763fba92ef1e42dc6101c7 (patch)
tree83f13f708c65bd7372275453b17a31447856316a /lldb/packages/Python/lldbsuite/test/configuration.py
parentccc7a072db05592cc42c0caac835b22f9a01a89f (diff)
downloadllvm-828783177f71d95522763fba92ef1e42dc6101c7.zip
llvm-828783177f71d95522763fba92ef1e42dc6101c7.tar.gz
llvm-828783177f71d95522763fba92ef1e42dc6101c7.tar.bz2
Reland "[llvm-lit] Process ANSI color codes in test output when forma… (#108107)
…tting" (#108104)" This recommits 0f56ba13bff7ab72bfafcf7c5cf9e5b8bd16d895 (reverted by 6007ad79afeffb1288781b4a7241290386293aff). In the original patch llvm/utils/lit/tests/escape-color.py failed on Windows because it diffed llvm-lit output with a file containing '\n' newlines rather than '\r\n'. This issue is avoided by calling 'diff --strip-trailing-cr'. Original description below: Test output that carried color across newlines previously resulted in the formatting around the output also being colored. Detect the current ANSI color and reset it when printing formatting, and then reapply it. As an added bonus an unterminated color code is also detected, preventing it from leaking out into the rest of the terminal. Fixes #106633
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions