diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2015-08-07 21:38:20 +0900 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-10-02 17:43:50 +0200 |
commit | e7b65fe5df4c24dca33445ab9105bf5b5c5865a5 (patch) | |
tree | b845f0616b899613475bf8d3abb736cfef57d41e | |
parent | e1c1c45eb82e79915f46bcbcf113f3287eefbed3 (diff) |
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
-rw-r--r-- | validate/launcher/apps/gstvalidate.py | 4 | ||||
-rw-r--r-- | validate/launcher/baseclasses.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/validate/launcher/apps/gstvalidate.py b/validate/launcher/apps/gstvalidate.py index 51f9205..0b1a9b7 100644 --- a/validate/launcher/apps/gstvalidate.py +++ b/validate/launcher/apps/gstvalidate.py @@ -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, diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py index 2cddd0d..b9b0aeb 100644 --- a/validate/launcher/baseclasses.py +++ b/validate/launcher/baseclasses.py @@ -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)), ] |