validate: launcher: Keep gst debug logs in main log fails in debug mode

It makes reading the logs much simpler

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5666>
This commit is contained in:
Thibault Saunier 2023-07-21 09:04:54 -04:00 committed by GStreamer Marge Bot
parent 89434a077c
commit c530c94239

View file

@ -951,7 +951,7 @@ class GstValidateTest(Test):
subproc_env["GST_VALIDATE_UUID"] = self.get_uuid() subproc_env["GST_VALIDATE_UUID"] = self.get_uuid()
subproc_env["GST_VALIDATE_LOGSDIR"] = self.options.logsdir subproc_env["GST_VALIDATE_LOGSDIR"] = self.options.logsdir
if 'GST_DEBUG' in os.environ and not self.options.redirect_logs: if 'GST_DEBUG' in os.environ and not self.options.redirect_logs and not self.options.debug:
gstlogsfile = os.path.splitext(self.logfile)[0] + '.gstdebug' gstlogsfile = os.path.splitext(self.logfile)[0] + '.gstdebug'
self.extra_logfiles.add(gstlogsfile) self.extra_logfiles.add(gstlogsfile)
subproc_env["GST_DEBUG_FILE"] = gstlogsfile subproc_env["GST_DEBUG_FILE"] = gstlogsfile