Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] support/testing/infra/emulator.py: globally disable colors
@ 2026-11-14 22:21 Julien Olivain via buildroot
  2026-11-14 22:21 ` [Buildroot] [PATCH 2/3] Revert "support/testing: test_python.py: disable interpreter colors" Julien Olivain via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Julien Olivain via buildroot @ 2026-11-14 22:21 UTC (permalink / raw)
  To: buildroot; +Cc: Ricardo Martincoski, Julien Olivain

Buildroot commit [1] disabled colors of the Python interpreter (which
introduced automatic coloring in version 3.14). Those colors were
introducing Python test failures.

It appears that more an more programs, not only Python, are following
this trend to enable colors when programs are running interactively
on a terminal.

Disabling those colors by setting the NO_COLOR environment variable
is becoming common. See [2].

This commit sets the NO_COLOR=1 environment variable to globally
request to disable color in all runtime tests.

[1] https://gitlab.com/buildroot.org/buildroot/-/commit/3a6e2b4a0395f6e049cd847cf16406a4d0d998ad
[2] https://no-color.org/

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
 support/testing/infra/emulator.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/support/testing/infra/emulator.py b/support/testing/infra/emulator.py
index d690949120..4171ddfe3b 100644
--- a/support/testing/infra/emulator.py
+++ b/support/testing/infra/emulator.py
@@ -160,6 +160,7 @@ class Emulator(object):
 
     def connect_shell(self):
         extra_init_cmd = " && ".join([
+            'export NO_COLOR=1',
             'export PAGER=cat',
             'dmesg -n 1',
             # Prevent the shell from wrapping the commands at 80 columns.
-- 
2.56.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-15  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-14 22:21 [Buildroot] [PATCH 1/3] support/testing/infra/emulator.py: globally disable colors Julien Olivain via buildroot
2026-11-14 22:21 ` [Buildroot] [PATCH 2/3] Revert "support/testing: test_python.py: disable interpreter colors" Julien Olivain via buildroot
2026-11-14 22:21 ` [Buildroot] [PATCH 3/3] support/testing: test_systemd: remove unneeded NO_COLOR=1 Julien Olivain via buildroot
2026-11-15  9:54 ` [Buildroot] [PATCH 1/3] support/testing/infra/emulator.py: globally disable colors Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox