validate: Disable coloration of GST_DEBUG logs when we have no-color
authorThibault Saunier <tsaunier@gnome.org>
Thu, 27 Nov 2014 12:48:17 +0000 (13:48 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 5 Dec 2014 11:16:54 +0000 (12:16 +0100)
Do that only when those logs are not saved to a file

validate/launcher/baseclasses.py

index 8e680bc..8df10c9 100644 (file)
@@ -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