From 339703d2eb6864711eadc2c5517015618addae13 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 28 Mar 2014 15:00:45 +0100 Subject: [PATCH] validate:launcher: Handle windows path to construct arguments --- validate/tools/launcher/apps/ges-launch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/validate/tools/launcher/apps/ges-launch.py b/validate/tools/launcher/apps/ges-launch.py index b84835d4e6..b935d94072 100644 --- a/validate/tools/launcher/apps/ges-launch.py +++ b/validate/tools/launcher/apps/ges-launch.py @@ -84,8 +84,11 @@ class GESTest(GstValidateTest): paths = [paths] for path in paths: + # We always want paths separator to be cut with '/' for ges-launch + path = path.replace("\\", "/") + quote_uri(path) if self.options.recurse_paths: - self.add_arguments("--sample-paths", quote_uri(path)) + self.add_arguments("--sample-paths", path) for root, dirs, files in os.walk(path): for directory in dirs: self.add_arguments("--sample-paths", @@ -95,7 +98,7 @@ class GESTest(GstValidateTest): ) ) else: - self.add_arguments("--sample-paths", "file://" + path) + self.add_arguments("--sample-paths", utils.path2url(path)) def build_arguments(self): GstValidateTest.build_arguments(self)