[all-commits] [llvm/llvm-project] 0f56ba: [llvm-lit] Process ANSI color codes in test output...
Henrik G. Olsson via All-commits
all-commits at lists.llvm.org
Tue Sep 10 13:38:25 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f56ba13bff7ab72bfafcf7c5cf9e5b8bd16d895
https://github.com/llvm/llvm-project/commit/0f56ba13bff7ab72bfafcf7c5cf9e5b8bd16d895
Author: Henrik G. Olsson <hnrklssn at gmail.com>
Date: 2024-09-10 (Tue, 10 Sep 2024)
Changed paths:
M llvm/utils/lit/lit/TestRunner.py
A llvm/utils/lit/tests/Inputs/escape-color/color-escaped.txt
A llvm/utils/lit/tests/Inputs/escape-color/color.txt
A llvm/utils/lit/tests/Inputs/escape-color/lit.cfg
A llvm/utils/lit/tests/escape-color.py
Log Message:
-----------
[llvm-lit] Process ANSI color codes in test output when formatting (#106776)
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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list