Merge pull request #391 from ChrisMacNaughton/bug/tempest-first-run-error
Add try/except around tempest workspace destruction
This commit is contained in:
@@ -47,7 +47,7 @@ def destroy_workspace(workspace_name, workspace_path):
|
||||
try:
|
||||
subprocess.check_call(['tempest', 'workspace', 'remove', '--rmdir',
|
||||
'--name', workspace_name])
|
||||
except subprocess.CalledProcessError:
|
||||
except (subprocess.CalledProcessError, FileNotFoundError):
|
||||
pass
|
||||
if os.path.isdir(workspace_path):
|
||||
shutil.rmtree(workspace_path)
|
||||
|
||||
Reference in New Issue
Block a user