Fix ansible-test handling of deleted test targets.
This commit is contained in:
parent
8716a5bc67
commit
1ce2ea0b6c
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ class PathMapper(object):
|
||||||
return minimal
|
return minimal
|
||||||
|
|
||||||
if path.startswith('test/integration/targets/'):
|
if path.startswith('test/integration/targets/'):
|
||||||
|
if not os.path.exists(path):
|
||||||
|
return minimal
|
||||||
|
|
||||||
target = self.integration_targets_by_name[path.split('/')[3]]
|
target = self.integration_targets_by_name[path.split('/')[3]]
|
||||||
|
|
||||||
if 'hidden/' in target.aliases:
|
if 'hidden/' in target.aliases:
|
||||||
|
|
Loading…
Reference in a new issue