mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
validate:launcher: Handle windows path to construct arguments
This commit is contained in:
parent
bc40235600
commit
339703d2eb
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue