From ccbcc04498d8d2e6a3826882e171f4791214d9b7 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 27 Nov 2014 13:48:17 +0100 Subject: [PATCH] validate: Disable coloration of GST_DEBUG logs when we have no-color Do that only when those logs are not saved to a file --- validate/launcher/baseclasses.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py index 8e680bc9e5..8df10c9f1a 100644 --- a/validate/launcher/baseclasses.py +++ b/validate/launcher/baseclasses.py @@ -314,6 +314,8 @@ class GstValidateTest(Test): gstlogsfile = self.logfile + '.gstdebug' self.extra_logfiles.append(gstlogsfile) subproc_env["GST_DEBUG_FILE"] = gstlogsfile + elif self.options.no_color: + subproc_env["GST_DEBUG_NO_COLOR"] = '1' return subproc_env