validate: launcher: Fix media_check class name and add double quotes for valgrind...
authorVineeth T M <vineeth.tm@samsung.com>
Fri, 7 Aug 2015 12:38:20 +0000 (21:38 +0900)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 2 Oct 2015 15:43:50 +0000 (17:43 +0200)
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

validate/launcher/apps/gstvalidate.py
validate/launcher/baseclasses.py

index 51f9205..0b1a9b7 100644 (file)
@@ -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,
index 2cddd0d..b9b0aeb 100644 (file)
@@ -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)),
         ]