From e7b65fe5df4c24dca33445ab9105bf5b5c5865a5 Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Fri, 7 Aug 2015 21:38:20 +0900 Subject: [PATCH] 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 --- validate/launcher/apps/gstvalidate.py | 4 ++-- 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)), ] -- 2.7.4