mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
validate: launcher: Make the output markdown file more readable
Without ansi color codes and marking logs as such Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5666>
This commit is contained in:
parent
c530c94239
commit
ad68ce7f64
1 changed files with 4 additions and 2 deletions
|
@ -683,7 +683,7 @@ class Test(Loggable):
|
|||
self.out.write("# `%s`\n\n"
|
||||
"## Command\n\n``` bash\n%s\n```\n\n" % (
|
||||
self.classname, self.get_command_repr()))
|
||||
self.out.write("## %s output\n\n``` \n\n" % os.path.basename(self.application))
|
||||
self.out.write("## %s output\n\n``` log \n\n" % os.path.basename(self.application))
|
||||
self.out.flush()
|
||||
else:
|
||||
message = "Launching: %s%s\n" \
|
||||
|
@ -951,12 +951,14 @@ class GstValidateTest(Test):
|
|||
subproc_env["GST_VALIDATE_UUID"] = self.get_uuid()
|
||||
subproc_env["GST_VALIDATE_LOGSDIR"] = self.options.logsdir
|
||||
|
||||
no_color = True
|
||||
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'
|
||||
self.extra_logfiles.add(gstlogsfile)
|
||||
subproc_env["GST_DEBUG_FILE"] = gstlogsfile
|
||||
no_color = self.options.no_color
|
||||
|
||||
if self.options.no_color:
|
||||
if no_color:
|
||||
subproc_env["GST_DEBUG_NO_COLOR"] = '1'
|
||||
|
||||
# Ensure XInitThreads is called, see bgo#731525
|
||||
|
|
Loading…
Reference in a new issue