From 523fea8db50a2330ecd58c3d434fe2cd939a68f9 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Mon, 6 Jul 2026 04:29:04 -0700 Subject: [PATCH] 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 --- sci-electronics/bender/bender-0.32.0.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sci-electronics/bender/bender-0.32.0.ebuild b/sci-electronics/bender/bender-0.32.0.ebuild index 3b0583bd10..a954bc1242 100644 --- a/sci-electronics/bender/bender-0.32.0.ebuild +++ b/sci-electronics/bender/bender-0.32.0.ebuild @@ -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 +}