From ac172a9ac6244256fd39b251051bf3e3076453a1 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Tue, 4 Aug 2015 08:35:16 +0900 Subject: [PATCH] validate:launcher: improve uri generation for --medias-path When --medias-paths option is being used, right now we have to specify the full path, like /home/user/gst/master/media/ But when inside master directory, would like to specify only media/ and expect it to work. Using os.path.abspath and create uri based on that. This way we can either just pass media/ or pass the full path as parameters. https://bugzilla.gnome.org/show_bug.cgi?id=752518 --- validate/launcher/apps/gstvalidate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/launcher/apps/gstvalidate.py b/validate/launcher/apps/gstvalidate.py index 017eb019c8..0bff003379 100644 --- a/validate/launcher/apps/gstvalidate.py +++ b/validate/launcher/apps/gstvalidate.py @@ -672,7 +672,7 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""") else: for root, dirs, files in os.walk(path): for f in files: - fpath = os.path.join(path, root, f) + fpath = os.path.join(os.path.abspath(path), root, f) if os.path.isdir(fpath) or \ fpath.endswith(GstValidateMediaDescriptor.MEDIA_INFO_EXT) or\ fpath.endswith(ScenarioManager.FILE_EXTENSION):