]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
If bootstrap fails, remove the virtualenv
authorZack Cerza <zack.cerza@inktank.com>
Tue, 12 Aug 2014 23:02:04 +0000 (17:02 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Tue, 12 Aug 2014 23:02:04 +0000 (17:02 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/repo_utils.py

index 3b0fde2ac332e1f62733350d935422e73641b593..9baccdef495478274281ef79c2b6b0e1348307a1 100644 (file)
@@ -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