validate:launcher: add quotes to the file path
authorVineeth T M <vineeth.tm@samsung.com>
Mon, 20 Jul 2015 10:37:41 +0000 (19:37 +0900)
committerLuis de Bethencourt <luis@debethencourt.com>
Wed, 22 Jul 2015 15:40:07 +0000 (16:40 +0100)
When folder name contains space or other special characters,
it fails to recognise the same and error is thrown. Adding the path
inside  to recognise the same

https://bugzilla.gnome.org/show_bug.cgi?id=752611

validate/launcher/apps/gstvalidate.py

index 0a5f004..5996a28 100644 (file)
@@ -396,7 +396,7 @@ class GstValidateLaunchTest(GstValidateTest):
         self.add_arguments(self.pipeline_desc)
         if self.media_descriptor is not None and self.media_descriptor.get_path():
             self.add_arguments(
-                "--set-media-info", self.media_descriptor.get_path())
+                "--set-media-info", '"' + self.media_descriptor.get_path() + '"')
 
 
 class GstValidateMediaCheckTest(GstValidateTest):
@@ -415,7 +415,7 @@ class GstValidateMediaCheckTest(GstValidateTest):
     def build_arguments(self):
         Test.build_arguments(self)
         self.add_arguments(self._uri, "--expected-results",
-                           self._media_info_path)
+                           '"' + self._media_info_path + '"')
 
 
 class GstValidateTranscodingTest(GstValidateTest, GstValidateEncodingTestInterface):