mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
If bootstrap fails, remove the virtualenv
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
This commit is contained in:
parent
a948baaf62
commit
dd9ee971d7
@ -208,6 +208,9 @@ def fetch_teuthology(branch, lock=True):
|
||||
for line in boot_proc.stdout.readlines():
|
||||
log.warn(line.strip())
|
||||
log.info("Bootstrap exited with status %s", returncode)
|
||||
venv_path = os.path.join(dest_path, 'virtualenv')
|
||||
log.info("Removing %s", venv_path)
|
||||
shutil.rmtree(venv_path, ignore_errors=True)
|
||||
|
||||
return dest_path
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user