Mercurial > kallithea
diff rhodecode/lib/utils.py @ 639:45e1fdc0082c
Version bump,freeze of dependent libs.
Little test update
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 02 Nov 2010 20:19:05 +0100 |
parents | 9893c2fc846b |
children | bee56f209c40 |
line wrap: on
line diff
--- a/rhodecode/lib/utils.py Sun Oct 24 16:23:12 2010 +0200 +++ b/rhodecode/lib/utils.py Tue Nov 02 20:19:05 2010 +0100 @@ -460,6 +460,7 @@ import tarfile import shutil from os.path import dirname as dn, join as jn, abspath + from rhodecode.tests import REPO_PATH, NEW_REPO_PATH log = logging.getLogger('TestEnvCreator') # create logger @@ -493,8 +494,12 @@ #PART TWO make test repo log.debug('making test vcs repo') - if os.path.isdir('/tmp/vcs_test'): - shutil.rmtree('/tmp/vcs_test') + if os.path.isdir(REPO_PATH): + log.debug('REMOVING %s', REPO_PATH) + shutil.rmtree(REPO_PATH) + if os.path.isdir(NEW_REPO_PATH): + log.debug('REMOVING %s', NEW_REPO_PATH) + shutil.rmtree(NEW_REPO_PATH) cur_dir = dn(dn(abspath(__file__))) tar = tarfile.open(jn(cur_dir, 'tests', "vcs_test.tar.gz"))