fix directory check in discover

the cwd is changed by the time the test is run to see if the name
matches something that is a directory, so we need to build the full path
to the thing for the test
This commit is contained in:
Doug Hellmann 2014-11-11 21:20:34 +00:00
parent 8ee6e2b998
commit bda04343c5
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ def discover(repo_root):
"""Discover project-like directories under the repository root"""
with utils.working_dir(repo_root):
return itertools.ifilter(
os.path.isdir,
lambda x: os.path.isdir(os.path.join(repo_root, x)),
itertools.chain(
glob.glob('openstack*/*'),
glob.glob('stackforge/*'),