##// END OF EJS Templates
cleanup before start testing suite of index and data cache dirs
marcink -
r1396:069ee86e beta
parent child Browse files
Show More
@@ -533,6 +533,18 b' def create_test_env(repos_test_path, con'
533 log.debug('removing %s', r)
533 log.debug('removing %s', r)
534 shutil.rmtree(jn(TESTS_TMP_PATH, r))
534 shutil.rmtree(jn(TESTS_TMP_PATH, r))
535
535
536 idx_path = config['app_conf']['index_dir']
537 data_path = config['app_conf']['cache_dir']
538
539 #clean index and data
540 if idx_path and os.path.exists(idx_path):
541 log.debug('remove %s' % idx_path)
542 shutil.rmtree(idx_path)
543
544 if data_path and os.path.exists(data_path):
545 log.debug('remove %s' % data_path)
546 shutil.rmtree(data_path)
547
536 #CREATE DEFAULT HG REPOSITORY
548 #CREATE DEFAULT HG REPOSITORY
537 cur_dir = dn(dn(abspath(__file__)))
549 cur_dir = dn(dn(abspath(__file__)))
538 tar = tarfile.open(jn(cur_dir, 'tests', "vcs_test_hg.tar.gz"))
550 tar = tarfile.open(jn(cur_dir, 'tests', "vcs_test_hg.tar.gz"))
General Comments 0
You need to be logged in to leave comments. Login now