Merge pull request #391 from ChrisMacNaughton/bug/tempest-first-run-error

Add try/except around tempest workspace destruction
This commit is contained in:
coreycb
2020-08-20 11:26:14 -04:00
committed by GitHub
+1 -1
View File
@@ -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)