diff --git a/tmt/steps/discover/fmf.py b/tmt/steps/discover/fmf.py index 9dfeddf576..8c0108d20b 100644 --- a/tmt/steps/discover/fmf.py +++ b/tmt/steps/discover/fmf.py @@ -651,7 +651,8 @@ def post_dist_git(self, created_content: list[Path]) -> None: if dist_git_extract and dist_git_extract != '/': try: - dist_git_extract = Path(glob.glob(sourcedir / dist_git_extract.lstrip('/'))[0]) + dist_git_extract = Path( + glob.glob(str(sourcedir / dist_git_extract.lstrip('/')))[0]) except IndexError: raise tmt.utils.DiscoverError( f"Couldn't glob '{dist_git_extract}' "