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:
parent
8ee6e2b998
commit
bda04343c5
|
@ -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/*'),
|
||||
|
|
Loading…
Reference in New Issue