validate: launcher: Allow using debug log colors when those are being redirected

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9127>
This commit is contained in:
Thibault Saunier 2025-04-11 13:24:02 -04:00 committed by GStreamer Marge Bot
parent ca36315dab
commit b51dadf6f1

View File

@ -1043,6 +1043,8 @@ class GstValidateTest(Test):
self.extra_logfiles.add(gstlogsfile)
subproc_env["GST_DEBUG_FILE"] = gstlogsfile
no_color = self.options.no_color
elif self.options.redirect_logs:
no_color = False
if no_color:
subproc_env["GST_DEBUG_NO_COLOR"] = '1'