From: Zack Cerza Date: Tue, 12 Aug 2014 23:02:04 +0000 (-0600) Subject: If bootstrap fails, remove the virtualenv X-Git-Tag: 1.1.0~1265 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd9ee971d7c58e44591d1bf54dbb2bb1d1b14b56;p=teuthology.git If bootstrap fails, remove the virtualenv Signed-off-by: Zack Cerza --- diff --git a/teuthology/repo_utils.py b/teuthology/repo_utils.py index 3b0fde2a..9baccdef 100644 --- a/teuthology/repo_utils.py +++ b/teuthology/repo_utils.py @@ -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