validate: Disable coloration of GST_DEBUG logs when we have no-color

Do that only when those logs are not saved to a file
This commit is contained in:
Thibault Saunier 2014-11-27 13:48:17 +01:00
parent 582f1cfc06
commit ccbcc04498

View 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