|
|
@ -47,15 +47,18 @@ class VcenterProvider(CloudProvider):
|
|
|
|
:type targets: tuple[TestTarget]
|
|
|
|
:type targets: tuple[TestTarget]
|
|
|
|
:type exclude: list[str]
|
|
|
|
:type exclude: list[str]
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
if os.path.isfile(self.config_static_path):
|
|
|
|
docker = find_executable('docker', required=False)
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docker = find_executable('docker')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if docker:
|
|
|
|
if docker:
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
super(VcenterProvider, self).filter(targets, exclude)
|
|
|
|
skip = 'cloud/%s/' % self.platform
|
|
|
|
|
|
|
|
skipped = [target.name for target in targets if skip in target.aliases]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if skipped:
|
|
|
|
|
|
|
|
exclude.append(skip)
|
|
|
|
|
|
|
|
display.warning('Excluding tests marked "%s" which require the "docker" command: %s'
|
|
|
|
|
|
|
|
% (skip.rstrip('/'), ', '.join(skipped)))
|
|
|
|
|
|
|
|
|
|
|
|
def setup(self):
|
|
|
|
def setup(self):
|
|
|
|
"""Setup the cloud resource before delegation and register a cleanup callback."""
|
|
|
|
"""Setup the cloud resource before delegation and register a cleanup callback."""
|
|
|
|