mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
sci-electronics/bender: force NO_COLOR in tests
The diagnostic tests match on the plain-text miette report, but owo_colors injects ANSI escapes when it detects color support, splitting caused by from the cause string and failing test_stderr_contains_caused_by_chain. Closes: https://bugs.gentoo.org/978810 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -257,3 +257,13 @@ src_configure() {
|
||||
# the dependency manager without it, matching pre-0.32 behaviour.
|
||||
cargo_src_configure --no-default-features
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# The diagnostic tests compare the plain-text rendering of miette
|
||||
# reports, but owo_colors injects ANSI escapes whenever it detects
|
||||
# color support, which splits "caused by:" from the cause string and
|
||||
# breaks test_stderr_contains_caused_by_chain (bug 978810). Force
|
||||
# color off so the rendered output stays plain.
|
||||
local -x NO_COLOR=1
|
||||
cargo_src_test
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user