Files
hakurei/internal/rosa/package/meson/test-strip-colour.patch
T
cat 99efc551ad internal/rosa/package/meson: respect CLICOLOR_FORCE
Upstream had ticket and patch available since 2017, still unmerged and refuses to support the environment variable, so patch it in. This also strips out the variable for test execution to work around buggy test suites like glib.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-30 08:51:46 +09:00

14 lines
576 B
Diff

diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 0661fa529..34ab36aa9 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1817,6 +1817,8 @@ class TestHarness:
test.exe_wrapper and test.exe_wrapper.found()):
env['MESON_EXE_WRAPPER'] = join_args(test.exe_wrapper.get_command())
env['MESON_TEST_ITERATION'] = str(iteration + 1)
+ env.pop('CLICOLOR_FORCE')
+ env.pop('FORCE_COLOR')
return SingleTestRunner(test, env, name, options)
def process_test_result(self, result: TestRun) -> None: