mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
validate:launcher: Fix launching testsuite with relative paths
This commit is contained in:
parent
b1b696017c
commit
335c14bf5b
1 changed files with 2 additions and 1 deletions
|
@ -1420,7 +1420,8 @@ class _TestsLauncher(Loggable):
|
|||
def _load_testsuites(self):
|
||||
testsuites = []
|
||||
for testsuite in self.options.testsuites:
|
||||
if os.path.isabs(testsuite):
|
||||
if os.path.exists(testsuite):
|
||||
testsuite = os.path.abspath(os.path.expanduser(testsuite))
|
||||
loaded_module = self._load_testsuite([testsuite])
|
||||
else:
|
||||
possible_testsuites_paths = [os.path.join(d, testsuite + ".py")
|
||||
|
|
Loading…
Reference in a new issue