diff --git a/taf/tests/test_updater/test_clone/test_clone_valid.py b/taf/tests/test_updater/test_clone/test_clone_valid.py index b6a60ef2..6a121a9e 100644 --- a/taf/tests/test_updater/test_clone/test_clone_valid.py +++ b/taf/tests/test_updater/test_clone/test_clone_valid.py @@ -36,12 +36,11 @@ indirect=True, ) def test_clone_valid_happy_path(origin_auth_repo, client_dir, benchmark): + setup_manager = SetupManager(origin_auth_repo) + setup_manager.add_task(add_valid_target_commits) + setup_manager.execute_tasks() def clone_valid_happy_path_inner(origin_auth_repo, client_dir): - setup_manager = SetupManager(origin_auth_repo) - setup_manager.add_task(add_valid_target_commits) - setup_manager.execute_tasks() - is_test_repo = origin_auth_repo.is_test_repo expected_repo_type = UpdateType.TEST if is_test_repo else UpdateType.OFFICIAL update_and_check_commit_shas( @@ -50,10 +49,7 @@ def clone_valid_happy_path_inner(origin_auth_repo, client_dir): client_dir, expected_repo_type=expected_repo_type, ) - breakpoint() - cleanup_directory(client_dir) - breakpoint() benchmark(clone_valid_happy_path_inner, origin_auth_repo, client_dir) diff --git a/taf/tests/test_updater/update_utils.py b/taf/tests/test_updater/update_utils.py index 1a37d501..2f71c6ce 100644 --- a/taf/tests/test_updater/update_utils.py +++ b/taf/tests/test_updater/update_utils.py @@ -229,6 +229,7 @@ def load_target_repositories( if library_dir is None: library_dir = auth_repo.path.parent.parent + repositoriesdb.clear_repositories_db() repositoriesdb.load_repositories( auth_repo, library_dir=library_dir,