Commit 367fd9f
authored
test: Don't look for a specfic ANSI color (#16118)
In rust-lang/rust#147207, I am changing `rustc` to `anstyle` for
terminal styling. As part of this change, `rustc` will now be emitting
`4-bit` ANSI colors instead of `8-bit` (256-color). That change is
blocked on the `message_format::cargo_renders_ansi` test, which looks
for a specific color sequence that `rustc` is no longer emitting and
subsequently causes it to fail. To fix this, I made it so the test now
looks for the start of an ANSI sequence instead of a specific sequence,
as seeing the start of an ANSI escape sequence allows us to verify that
ANSI colors are being emitted without the problems of looking for a
specific sequence.1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
0 commit comments