validate: launcher: Support relative path for folder names

Even though relative paths are supported, right now it does not
work when we give the path as 'media/' present in the current directory.
Adding support for the same.

https://bugzilla.gnome.org/show_bug.cgi?id=754100
This commit is contained in:
Vineeth T M 2015-08-26 10:36:51 +09:00 committed by Thibault Saunier
parent 91b3001f77
commit 1b700f13b4

View file

@ -682,7 +682,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(os.path.abspath(path), root, f)
fpath = os.path.abspath(os.path.join(root, f))
if os.path.isdir(fpath) or \
fpath.endswith(GstValidateMediaDescriptor.MEDIA_INFO_EXT) or\
fpath.endswith(ScenarioManager.FILE_EXTENSION):