validate: Escape '%' in Valgrind log filenames

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9042>
This commit is contained in:
Doug Nazar 2025-05-21 09:42:17 -04:00 committed by GStreamer Marge Bot
parent 822bef51f0
commit feb6e1602a

View File

@ -651,9 +651,6 @@ class Test(Loggable):
return command
def use_valgrind(self, command, subenv):
vglogsfile = os.path.splitext(self.logfile)[0] + '.valgrind'
self.extra_logfiles.add(vglogsfile)
vg_args = []
for o, v in [('trace-children', 'yes'),
@ -675,7 +672,7 @@ class Test(Loggable):
if not self.options.redirect_logs:
vglogsfile = os.path.splitext(self.logfile)[0] + '.valgrind'
self.extra_logfiles.add(vglogsfile)
vg_args.append("--%s=%s" % ('log-file', vglogsfile))
vg_args.append("--%s=%s" % ('log-file', vglogsfile.replace("%", "%%")))
for supp in self.get_valgrind_suppressions():
vg_args.append("--suppressions=%s" % supp)