mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
validate: launcher: Fix media_check class name and add double quotes for valgrind logs
When creating the class names for media check, uri is being used, instead of the path. Hence converting the uri using uri2path and creating class name. Add double quotes for valgrind logs, to support special characters like space https://bugzilla.gnome.org/show_bug.cgi?id=752808
This commit is contained in:
parent
e1c1c45eb8
commit
e7b65fe5df
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ from launcher.baseclasses import GstValidateTest, Test, \
|
|||
GstValidateMediaDescriptor, GstValidateEncodingTestInterface, \
|
||||
GstValidateBaseTestManager, MediaDescriptor, MediaFormatCombination
|
||||
|
||||
from launcher.utils import path2url, DEFAULT_TIMEOUT, which, \
|
||||
from launcher.utils import path2url, url2path, DEFAULT_TIMEOUT, which, \
|
||||
GST_SECOND, Result, Protocols, mkdir, printc, Colors, get_data_file
|
||||
|
||||
#
|
||||
|
@ -75,7 +75,7 @@ class GstValidateMediaCheckTestsGenerator(GstValidateTestsGenerator):
|
|||
timeout = DEFAULT_TIMEOUT
|
||||
|
||||
classname = "validate.%s.media_check.%s" % (protocol,
|
||||
os.path.basename(uri).replace(".", "_"))
|
||||
os.path.basename(url2path(uri)).replace(".", "_"))
|
||||
self.add_test(GstValidateMediaCheckTest(classname,
|
||||
self.test_manager.options,
|
||||
self.test_manager.reporter,
|
||||
|
|
|
@ -317,7 +317,7 @@ class Test(Loggable):
|
|||
('leak-check', 'full'),
|
||||
('leak-resolution', 'high'),
|
||||
('num-callers', '20'),
|
||||
('log-file', vglogsfile),
|
||||
('log-file', '"' + vglogsfile + '"'),
|
||||
('error-exitcode', str(VALGRIND_ERROR_CODE)),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue