validate: launcher: Do not force using current module dir to run check tests

This commit is contained in:
Thibault Saunier 2017-02-21 13:38:16 -03:00
parent 158507585c
commit a39ef816a6

View file

@ -86,7 +86,7 @@ class MesonTestsManager(TestsManager):
arggroup.add_argument("--meson-build-dir", arggroup.add_argument("--meson-build-dir",
action="append", action="append",
dest='meson_build_dirs', dest='meson_build_dirs',
default=[config.BUILDDIR], default=[],
help="defines the paths to look for GstValidate tools.") help="defines the paths to look for GstValidate tools.")
arggroup.add_argument("--meson-no-rebuild", arggroup.add_argument("--meson-no-rebuild",
action="store_true", action="store_true",
@ -94,6 +94,8 @@ class MesonTestsManager(TestsManager):
help="Whether to avoid to rebuild tests before running them.") help="Whether to avoid to rebuild tests before running them.")
def get_meson_tests(self): def get_meson_tests(self):
if not self.options.meson_build_dirs:
self.options.meson_build_dirs = config.BUILDDIR
mesontests = [] mesontests = []
for i, bdir in enumerate(self.options.meson_build_dirs): for i, bdir in enumerate(self.options.meson_build_dirs):
bdir = os.path.abspath(bdir) bdir = os.path.abspath(bdir)